Re: Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-22 Thread Ivan Chernyavsky
22.08.2015, 01:39, Junio C Hamano gits...@pobox.com:  Ivan Chernyavsky campo...@yandex.ru writes:   Another problem is that builtin/branch.c currently does not use   setup_revisions(), so I'll have to hook it there as well.  Heh, you say problem above, but I do not think it is a problem  

Re: Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-22 Thread Ivan Chernyavsky
22.08.2015, 12:19, Ivan Chernyavsky campo...@yandex.ru:   One thing I'm worried about is that git-branch already has option --all. So we'll get a semantics conflict with setup_revisions() (all branches vs all refs). This will have to be treated carefully, e.g. retrace and fix effects of

Re: Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-22 Thread Karthik Nayak
On Sat, Aug 22, 2015 at 2:49 PM, Ivan Chernyavsky campo...@yandex.ru wrote Note that branch --list, tag --list and for-each-ref are being revamped to share more internal code. If you want to pursue this, you probably would want to build on top of that effort once it is done. That way, you

Re: Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-21 Thread Junio C Hamano
Ivan Chernyavsky campo...@yandex.ru writes: But now I had a look on the source and I can see that builtin/branch.c builds the list of references and prints them in a single place (print_ref_list()) so I will have to split that function into two in order to reuse existing functionality.

Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-21 Thread Ivan Chernyavsky
17.08.2015, 20:49, Junio C Hamano gits...@pobox.com:  Duy Nguyen pclo...@gmail.com writes:   On Wed, Aug 5, 2015 at 7:47 PM, Ivan Chernyavsky campo...@yandex.ru wrote:  That is a dangeous thought. I'd understand if it were internally  two step process, i.e. (1) the first pass finds

Re: Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-17 Thread Ivan Chernyavsky
15.08.2015, 12:19, Duy Nguyen pclo...@gmail.com: Probably because nobody is interested and steps up to do it. The lack of response to you mail is a sign. Maybe you can try make a patch? I imagine it would not be so different from current --contains code, but this time we need to look into

Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-05 Thread Junio C Hamano
Ivan Chernyavsky campo...@yandex.ru writes: For some time I'm wondering why there's no --grep option to the git branch command, which would request to print only branches having specified string/regexp in their history. So for example: $ git branch -r --grep=BUG12345 should be

Re: Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-05 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: I think people do things like: git log --all --decorate --grep=... s/decorate/source/; sorry for the noise. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: Which branch(es) contain certain commits? (was Re: (unknown))

2015-08-05 Thread Ivan Chernyavsky
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 gits...@pobox.com: Junio C Hamano gits...@pobox.com writes:  I think people do things like:  git log --all --decorate --grep=... s/decorate/source/; sorry