Uh oh!
There was an error while loading. Please reload this page.
Enable git diff-tree with empty second tree-ish param - #740
Conversation
Executing `git diff-tree` and omitting the second tree-ish argument wasn't possible before. This commit enables this behaviour by allowing the caller to send in an empty string. Allowing an empty string keeps backwards compatibility for all other allowed input types.
gangefors
commented
Mar 29, 2018
It might be that the thing I'm trying to achieve here is the same result I get if I use |
Byron
commented
Apr 3, 2018
@gangefors Thanks for your effort :)! It’s hard for me to tell if git.diff.NULL_TREE would have the same result, just because I am not on a ‘real’ computer right now. However, if that was the case the test provided here would work similarly, which is something you could check. If it’s not the same, I would prefer to see the empty string become some constant, like |
Byron
commented
Sep 28, 2019
Thanks a lot for your contribution thus far ! |
Executing
git diff-treeand omitting the second tree-ish argumentwasn't possible before. This PR enables this behaviour by allowing
the caller to send in an empty string.
Allowing an empty string keeps backwards compatibility for all other
allowed input types.