Git/hacks
< Git
Jump to navigation
Jump to search
Revision as of 10:54, 25 June 2015 by Freephile (talk | contribs) (Created page with "See all the changes in color, but without any context lines, and without the leading +/-/<nowiki>[space]</nowiki> This makes it easy to grab changes and stuff them in another...")
See all the changes in color, but without any context lines, and without the leading +/-/[space] This makes it easy to grab changes and stuff them in another file for example.
git diff -U0 --color myfile | sed -r "s/^([^-+ ]*)[-+ ]/\\1/"