#497·jc

New parser for parsing the output of `git diff --name-status`

Author: kellyjonbrazilCreated Dec 16, 2023Updated Aug 28, 2026
Labelsnew-parserready-to-ship

Discussed in https://github.com/kellyjonbrazil/jc/discussions/397

Originally posted by kishaningithub April 27, 2023 The git diff --name-status main..<<branch>> gives the output in the format

R100    README.md       README_now.md
M       bootstrap/bootstrap.sh
D       configs/sample.json
A       scripts/status.py

if you look at above the command gives output which says

  • The type of change in the file viz Added, Modified, Deleted, Renamed (there are also ones like file type changed etc)
  • The full file path

It would be great to have this outputted as a json