From: Ivan Chernyavsky <camposer@yandex.ru>
To: Junio C Hamano <gitster@pobox.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Which branch(es) contain certain commits? (was Re: (unknown))
Date: Wed, 05 Aug 2015 22:48:30 +0300 [thread overview]
Message-ID: <1758741438804110@web14m.yandex.ru> (raw)
In-Reply-To: <xmqqio8t4qf3.fsf@gitster.dls.corp.google.com>
Sorry for empty subject in the original mail, somehow I've deleted it and didn't even notice.
05.08.2015, 20:05, "Junio C Hamano" <gitster@pobox.com>:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> I think people do things like:
>>
>> git log --all --decorate --grep=...
>
> s/decorate/source/; sorry for the noise.
Thanks Junio!
I was actually considering using --source, but for me the problem is it always returns *just one* branch for every matching commit. So the caller must then use his own knowledge to deduce all branches where this branch merged.
Considering following history:
* b46f30e refs/heads/zzz eee
| * dc0280f refs/heads/yyy ddd
|/
| * 31739da refs/heads/xxx ccc
|/
* a42bd23 refs/heads/master bbb
* 01a8291 refs/heads/master aaa
Command "git log --all --source --grep=bbb --oneline" will return:
a42bd23 refs/heads/master bbb
While I'm expecting something like "git branch --contains=a42bd23" output in terms of *all* topics being listed:
master
xxx
yyy
* zzz
The most common use case is when support people need to quickly get at least rough idea which branches have specific ticket/CR mentioned.
--
Ivan
next prev parent reply other threads:[~2015-08-05 19:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 12:47 (unknown) Ivan Chernyavsky
2015-08-05 17:03 ` Which branch(es) contain certain commits? (was Re: (unknown)) Junio C Hamano
2015-08-05 17:05 ` Junio C Hamano
2015-08-05 19:48 ` Ivan Chernyavsky [this message]
2015-08-15 9:19 ` Duy Nguyen
2015-08-17 6:45 ` Which branch(es) contain certain commits? (was Re: (unknown)) Ivan Chernyavsky
2015-08-17 17:49 ` Junio C Hamano
2015-08-21 21:29 ` Which branch(es) contain certain commits? (was Re: (unknown)) Ivan Chernyavsky
2015-08-21 22:39 ` Junio C Hamano
2015-08-22 9:19 ` Ivan Chernyavsky
2015-08-22 10:32 ` Ivan Chernyavsky
2015-08-22 10:59 ` Karthik Nayak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1758741438804110@web14m.yandex.ru \
--to=camposer@yandex.ru \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.