Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To make Github use git diff .. instead of git diff ..., you can add the flag --no-renames to the git diff command. This flag disables the detection and renaming of files, which is usually the difference between .. and ... in the Git command history. To use this flag in Github, simply modify the URL of the diff view to include the flag, like so:

https://github.com/[user]/[repo]/compare/[branch]?diff=split&name=[commit]&title=Some%20title&body=@[user]%20Some%20comment%0A%0A--no-renames

This URL will open the diff view for the specified branch and commit, but without detecting any file renames. You can also modify the diff view by clicking the "File" dropdown and selecting "Diff settings", then checking the "Simplified" option. This will also disable file rename detection and use .. instead of ... in the Git command history.