git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add --filedirstat diff option

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 3, 2008, 00:44 UTC
Message-ID
<7v7i9udpmg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080903001254.GA12263@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 22 quoted lines
> On Tue, Sep 02, 2008 at 04:55:39PM -0700, Junio C Hamano wrote:
>
>> "filedirstat" is simply too long to type, and it has a certain "Huh?"
>> factor --- is it about file, or is it about directory?
>
> I had the same thought when I saw the original patch...
>
>> This option essentially is just the dirstat but with different logic to
>> compute how big the damage is.  Conceptually, the original one gives one
>> "damage point" to each added or deleted line.
>> 
>>         $ git show --dirstat=<one-point-per-line>
>
> ...and I thought of --dirstat-byfile. So maybe:
>
>   --dirstat=byfile
>
> and
>
>   --dirstat=byline
>
> defaulting to byline (or by-line if preferred).

As Heikki points out (and I missed this initially myself), --dirstat[=x] already exists and it gives the cut-off-point.

Perhaps "--dirstat-by-file" that implies "--dirstat" (with the understanding (and documentation) that "--dirstat" is a shorthand for "--dirstat-by-line" that does not exist)?

Previous: Heikki OrsilaNext: Jeff King
Message 11 of 12 in “Add --filedirstat diff option”
  1. Add --filedirstat diff optionHeikki Orsila, Sep 1, 2008
  2. Junio C HamanoSep 2, 2008
  3. Heikki OrsilaSep 2, 2008
  4. Junio C HamanoSep 2, 2008
  5. Junio C HamanoSep 2, 2008
  6. Heikki OrsilaSep 3, 2008
  7. Re* [PATCH] Add --filedirstat diff optionJunio C Hamano, Sep 3, 2008
  8. Heikki OrsilaSep 3, 2008
  9. Jeff KingSep 3, 2008
  10. Heikki OrsilaSep 3, 2008
  11. Junio C HamanoSep 3, 2008
  12. Jeff KingSep 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.