All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Bo Yang <struggleyb.nku@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: What's cooking in git.git (Sep 2010, #05; Wed, 15)
Date: Thu, 16 Sep 2010 18:06:21 +0200	[thread overview]
Message-ID: <4C92407D.5090105@drmicha.warpmail.net> (raw)
In-Reply-To: <AANLkTimd0j4toF6kEF+6H_-JcE60aA2jbM67PoLjJ=bs@mail.gmail.com>

Bo Yang venit, vidit, dixit 16.09.2010 17:23:
> On Thu, Sep 16, 2010 at 6:19 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> [Cooking]
>>
>> * by/line-log (2010-09-11) 18 commits
>>  (merged to 'next' on 2010-09-12 at e29a029)
>>  + log -L: do not free parents lists we might need again
>>  (merged to 'next' on 2010-08-26 at a160ff1)
>>  + Document line history browser
>>  + Add tests for line history browser
>>  + Add --full-line-diff option
>>  + Add --graph prefix before line history output
>>  + Add parent rewriting to line history browser
>>  + Make graph_next_line external to other part of git
>>  + Make rewrite_parents public to other part of git
>>  + Hook line history into cmd_log, ensuring a topo-ordered walk
>>  + Print the line log
>>  + map/take range to the parent of commits
>>  + Add range clone functions
>>  + Export three functions from diff.c
>>  + Parse the -L options
>>  + Refactor parse_loc
>>  + Add the basic data structure for line level history
>>  + parse-options: add two helper functions
>>  + parse-options: enhance STOP_AT_NON_OPTION
>>
>> How would one trace history of lines 440,450 in t/t7300-clean.sh starting
>> from the tip of 'pu'?  "git log -p -L 440,450 pu -- t/t7300-clean.sh"
>> would be the most natural but it does not work (it wants "pu" to be a
>> path).  "git log -p -L 440,450 t/t7300-clean.sh pu" doesn't work either.
> 
> Please put the revision before the '-L' options, you can run:
> 
> git log -p origin/pu  -L 440,450 t/t7300-clean.sh
> 
> It will work.
> 
>> The command line parser of this series needs to be rethought (didn't I say
>> that many times?  Perhaps I was ignored).  Might want to kick this out of
>> 'next' and move to the stalled category after 1.7.3.
> 
> Yes, you have mentioned this many times, and I will put some time on this issue.
> 

I really haven't looked at the feature, but from other commands I would
suspect:

- refs go before paths
- options go before refs

Now, if "-L x,y" is an option /specific to a single file argument/ (not
an overall option for all file arguments) it needs to go before the file
it applies to. Is it file specific?

It would still be nice to make the parser more lenient in the sense that
it accepts an "-L x,y" in the usual place and applies it to all file
arguments.

Michael

  reply	other threads:[~2010-09-16 16:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-15 22:19 What's cooking in git.git (Sep 2010, #05; Wed, 15) Junio C Hamano
2010-09-16  6:05 ` Johannes Sixt
2010-09-16 10:33   ` Ævar Arnfjörð Bjarmason
2010-09-16 15:23 ` Bo Yang
2010-09-16 16:06   ` Michael J Gruber [this message]
2010-09-16 16:14   ` Junio C Hamano
2010-09-25 12:30 ` Alexander Sulfrian
2010-09-27  3:52   ` Junio C Hamano
2010-09-27  4:58 ` Junio C Hamano

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=4C92407D.5090105@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=struggleyb.nku@gmail.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.