3 ms·
The --color-moved feature sounds really nice! Something I've seen in Github but not in Git is how in a red/green line, the individual changed characters are a
by pjungwir 9y ago
The --color-moved feature sounds really nice!
Something I've seen in Github but not in Git is how in a red/green line, the individual changed characters are a brighter red/green than the rest. Is it possible to get that in CLUI git?
Here is a workflow I use often that I'm amazed isn't supported on Github: First I run `git log path/to/file` to see the commits for just that file. Then in a separate window I start copy/pasting SHAs to see the whole file at each commit: `git show abc123:path/to/file` ... `git show def456:path/tofile` ... etc. It's a little tedious, but it can really help to see what's going on.
It would be so much easier to do this in a browser with links and a back/forward button! In Github I can see the history of a single file, e.g. at https://github.com/pjungwir/topiary/commits/master/lib/topiary/node.rb https://github.com/pjungwir/topiary/commits/master/lib/topia... But from there I can't see that file at each commit. (Instead there are two links that both show me the commit's full diff, and another link back to the root of the repo.) I wish there were an easy way I could just browse forward and back, keeping the current file! Am I missing something?
- peff 9y agoTry the diff-highlight script which can be found at: https://github.com/git/git/tree/master/contrib/diff-highlight https://github.com/git/git/tree/master/contrib/diff-highligh...