Unfortunately not -- that's also why I included the --contains result.

± % git log --pretty="%H" branchA | grep 
9ba8f06829b2d2170f23254ed3fe8f3727fe56dc
9ba8f06829b2d2170f23254ed3fe8f3727fe56dc


± % git log --pretty="%H" branchB | grep 
9ba8f06829b2d2170f23254ed3fe8f3727fe56dc
9ba8f06829b2d2170f23254ed3fe8f3727fe56dc



Here's the result for merge-base:

± % git merge-base -a branchA branchB
03dd551f031f48e8702f9154b23f53af8cc4799b


Thanks!

On Monday, August 7, 2017 at 1:52:26 PM UTC-4, G. Sylvie Davies 
[bit-booster.com] wrote:
>
> > 
>>> >  % git log branchA..branchB | grep 
>>> 9ba8f06829b2d2170f23254ed3fe8f3727fe56dc 
>>> > commit 9ba8f06829b2d2170f23254ed3fe8f3727fe56dc 
>>> > 
>>> > ą % git log branchA | grep 9ba8f06829b2d2170f23254ed3fe8f3727fe56dc 
>>> > commit 9ba8f06829b2d2170f23254ed3fe8f3727fe56dc 
>>> > 
>>> > ą % git log branchB | grep 9ba8f06829b2d2170f23254ed3fe8f3727fe56dc 
>>> > commit 9ba8f06829b2d2170f23254ed3fe8f3727fe56dc 
>>> >
>>
>>
> These three commands resulting in output like this make no sense!
>
> The only thing I can think is that a commit message has the words "commit 
> 9ba8f06829b2d2170f23254ed3fe8f3727fe56dc" in it, and your grep is picking 
> that up.   Sometimes "git merge --squash" puts together commit messages 
> that contain text like that.
>
> Can you try running your "git log" commands with --pretty="%H" to prevent 
> commit messages from possibly interfering with the grep?
>
> git log --pretty="%H"
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to