From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Eugene Sajine <euguess@gmail.com>, Jeff King <peff@peff.net>,
git@vger.kernel.org, Jakub Narebski <jnareb@gmail.com>
Subject: Re: cannot find hash in the log output
Date: Fri, 3 Dec 2010 19:08:45 -0600 [thread overview]
Message-ID: <20101204010845.GC15906@burratino> (raw)
In-Reply-To: <7vfwueo9ie.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Two nits if this is really to help scripters.
>
> - Both -c and --cc cull merges uninteresting at the file level; if the
> script _really_ wants to view the whole history, giving -m would be
> more appropriate.
>
> - The default history traversal is --dense and also with merge
> simplification turned on; again, if the script _really_ wants to view
> the whole history, --sparse and/or --full-history would be necessary
> depending on the needs.
In a "tree blame" script:
- silence when a file was not changed from at least one parent is
perfectly appropriate --- that is not the birth of a blob;
- --dense versus --sparse shouldn't affect the output if the
rev-list and diff-tree are limited in the same way;
- history simplification is probably appropriate --- blind alleys
are not needed to explain the origin of this blob.
On the other hand, a "lifetime of this content" script would have very
different requirements ---
- changes from all parents would need to be tracked, requiring -m;
- --dense versus --sparse would still not matter, but:
- history simplification would be inappropriate, anyway --- blind
alleys ought to be investigated in case the content made a brief
appearance some time in the past.
--- making the options you mention quite relevant. Thanks.
next prev parent reply other threads:[~2010-12-04 1:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 19:57 cannot find hash in the log output Eugene Sajine
2010-12-02 20:48 ` Junio C Hamano
2010-12-02 21:07 ` Eugene Sajine
2010-12-03 17:41 ` Eugene Sajine
2010-12-03 17:52 ` Jeff King
2010-12-03 20:10 ` Eugene Sajine
2010-12-03 20:29 ` Jonathan Nieder
2010-12-03 20:53 ` Eugene Sajine
2010-12-03 20:55 ` Jonathan Nieder
2010-12-03 21:01 ` Eugene Sajine
2010-12-03 21:02 ` Junio C Hamano
2010-12-04 1:08 ` Jonathan Nieder [this message]
2010-12-03 21:11 ` Jeff King
2010-12-03 21:52 ` Jeff King
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=20101204010845.GC15906@burratino \
--to=jrnieder@gmail.com \
--cc=euguess@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jnareb@gmail.com \
--cc=peff@peff.net \
/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.