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

Re: [PATCH] git log -g: Complain, but do not fail, when no reflogs are there

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 24, 2007, 11:11 UTC
Message-ID
<Pine.LNX.4.64.0707241210170.14781@racer.site>
In-Reply-To
<81b0412b0707240317q56e42a9bs44eb3e5ef9e796c6@mail.gmail.com>
Hi,
On Tue, 24 Jul 2007, Alex Riesen wrote:
Show 27 quoted lines
> On 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > On Tue, 24 Jul 2007, Alex Riesen wrote:
> > > On 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > > >
> > > > When asking "git log -g --all", clearly you want to see only those refs
> > > > that do have reflogs, but you do not want it to fail, either.
> > > >
> > > > So instead of die()ing, complain about it, but move on to the other
> > refs.
> > > >
> > >
> > > I believe you wont even see these complaints: the pager will start shortly
> > > afterwards and fill the screen with commits, completely hiding the errors.
> > 
> > You can see it briefly, but it is hidden by default.  Which is a good
> > thing.  If you set the pager to "cat" (which is happily not the default!)
> > you can see them clearly.  Until you are swamped by the rest of the
> > output.
> > 
> > Maybe this is a feature?
> > 
> 
> Maybe. I can't see it at all. Should I downgrade something or propose
> a patch to put some delay after this error? I think not.
> 
> I think second Junios suggestion, but this is of course no
> difference to me.

Okay, two votes are enough to make me reconsider. Junio, could you please replace the two "error(...)"s by "-1"s? Only if you apply the patch, of course...

Ciao, Dscho

Previous: Alex Riesen
Message 7 of 7 in “git log -g: Complain, but do not fail, when no reflogs are there”
  1. git log -g: Complain, but do not fail, when no reflogs are thereJohannes Schindelin, Jul 23, 2007
  2. Junio C HamanoJul 24, 2007
  3. Johannes SchindelinJul 24, 2007
  4. Alex RiesenJul 24, 2007
  5. Johannes SchindelinJul 24, 2007
  6. Alex RiesenJul 24, 2007
  7. Johannes SchindelinJul 24, 2007

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.