-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change git diff command #101
Comments
Hi @struthe That is effectively very smart! Or in two times : Currently the plugin allows to use any git sha pointer (tag, sha, branch) so all the power is in the hand of the end user and it gives a lot of flexibility. I wonder if we should implement it directly in the cli or if we should document an example to use this git behavior. |
Hi @scolladon The point you show was something that I was not aware of and might help other to understand the usage. Thanks |
Thank you @struthe for bringing this to our attention! |
Is your proposal related to a problem?
When comparing two branch where the source branch was created from the target branch some commits before the diff of the branches provides two many results.
Describe the solution you'd like
I would suggest to enhance the git diff command.
currently you are using
git diff sourcebranch..targetbranch
You can enhance this if you want to "ignore" changes on the target branch that have be done after source branch was created from target branch by using the following command :
git diff --name-status $(git merge-base targetbranch sourcebranch) sourcebranch <path>
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: