Add --no-renames flag for git diffs from rbt diff.
Review Request #9221 — Created Sept. 24, 2017 and submitted
When creating a git diff with rbt diff, the -M option is automatically
used if available and the user has no way of making rbt pass in
--no-renames
to git diff.This change adds a
--no-renames
flag to the rbt diff command which then
gets passed into git diff.
Tests were run.
Description | From | Last Updated |
---|---|---|
E111 indentation is not a multiple of four |
reviewbot | |
Blank line between these. |
brennie | |
Again, I don't like using extra_args this way. We should definitely be using keyword args for this. |
brennie | |
no_renames=False over extra_args=[] |
brennie | |
Can you split this up for one condition per line? It makes it easier to read. |
brennie | |
Update this to the next point release for RBTools: 0.7.11 |
brennie | |
Blank line between these. |
brennie | |
Instead of checking the tool type, we should add a flag to SCMTool like supports_no_renames (defaulting to False) and set … |
brennie | |
I'm not sure that we should be using extra_args for this. This seems like a job for a keyword argument. |
brennie | |
These can be combined into a single conditional. |
david | |
I suspect we want to make this a fatal error (i.e. raise CommandError instead of just log something). |
david |
- Change Summary:
-
Fix flake8 error with indent.
- Commit:
-
b11dedb915f485914cfae2854fd9c3c028f0a052d36c0824c706d22de5f8cb741f959c1158988198
Checks run (2 succeeded)
-
-
-
-
-
-
Instead of checking the tool type, we should add a flag to
SCMTool
likesupports_no_renames
(defaulting to False) and setsupports_no_renames = True
inclients/git.py
. Then we can check:if self.options.no_renames: if tool.supports_no_renames: # ... else: logging.error('The %s SCM tool does not support diffs without renames', tool.type)
-
I'm not sure that we should be using
extra_args
for this. This seems like a job for a keyword argument.
- Change Summary:
-
Update to use keyword arg for
no_renames
and address review comments. - Commit:
-
d36c0824c706d22de5f8cb741f959c11589881987f540d384586e9c63a4f7b0b373ff07d67a7ef76
Checks run (2 succeeded)
- Change Summary:
-
Update code style.
- Commit:
-
7f540d384586e9c63a4f7b0b373ff07d67a7ef766aa90e72a8aaea957553e3c8492fa8ca2103358c
- People:
-
- Diff:
Revision 4 (+35 -14)
Checks run (2 succeeded)
flake8 passed.JSHint passed.
-
I'm happy with this as-is. Will wait for feedback from Chirstian and/or David before landing, however.