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

Re: Mismatched HEAD default behavior from git log

From
Jeff King <peff@peff.net>
Date
Aug 25, 2020, 19:55 UTC
Message-ID
<20200825195511.GD1419759@coredump.intra.peff.net>
In-Reply-To
<xmqq4koq1p28.fsf@gitster.c.googlers.com>
On Tue, Aug 25, 2020 at 12:51:59PM -0700, Junio C Hamano wrote:
Show 16 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> >> As the intent for adding the "--stdin" option to any subcommand has
> >> always been "we may need to feed many many things, that may bust the
> >> command line length limit, hence we let you feed these things from
> >> the standard input, but otherwise there should be no change in
> >> behaviour or semantics", when the behaviour of command line and
> >> "--stdin" differ, it is a bug in the latter.
> >
> > Agreed. It also helps in this case that the command-line behavior is
> > sensible and the --stdin one is not. :)
> >
> > I think the solution is probably something like:
> 
> You beat me to it while I was wondering what to do between the local
> got_rev_arg variable and the revs->rev_input_given field.

That makes me wonder why we need got_rev_arg at all if we have revs->rev_input_given. But I suspect an answer can be found by digging into git-blame. I probably won't do that immediately, so if you want to, you can do so without worrying that we're duplicating work. :)

-Peff
Previous: Junio C HamanoNext: Jeff King
Message 5 of 7 in “Mismatched HEAD default behavior from git log”
  1. Bryan TurnerAug 25, 2020
  2. Junio C HamanoAug 25, 2020
  3. Jeff KingAug 25, 2020
  4. Junio C HamanoAug 25, 2020
  5. Jeff KingAug 25, 2020
  6. revision: set rev_input_given in handle_revision_arg()Jeff King, Aug 26, 2020
  7. Junio C HamanoAug 26, 2020

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.