Posted By

ferro on 04/30/11


Tagged

git


Versions (?)

Show git repository diff of all files


 / Published in: Bash
 

  1. #!/bin/bash
  2. rm -rf /tmp/gitlist.text
  3.  
  4. for f in $(echo -e "`git status | awk -F" " '{printf "%s\n", $3}' | tail -n+6 | head -n-7`"); do
  5. git diff $f >> /tmp/gitlist.text
  6. echo >> /tmp/gitlist.text
  7. done
  8.  
  9. less /tmp/gitlist.text

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: ferro on February 2, 2012

PS: if you do a simple "git diff" you can get the diferencies, but with this you can add some headers separation along the files

You need to login to post a comment.