| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 63a60b3 commit 22f5158
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -144,7 +144,10 @@ def diff( | |||
| 144 | 144 | args.append("--abbrev=40") # we need full shas | |
| 145 | 145 | args.append("--full-index") # get full index paths, not only filenames | |
| 146 | 146 | ||
| 147 | - args.append("-M") # check for renames, in both formats | ||
| 147 | + # remove default '-M' arg (check for renames) if user is overriding it | ||
| 148 | + if not any(x in kwargs for x in ('find_renames', 'no_renames','M')): | ||
| 149 | + args.append("-M") | ||
| 150 | + | ||
| 148 | 151 | if create_patch: | |
| 149 | 152 | args.append("-p") | |
| 150 | 153 | else: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments