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

Re: git log -g bizarre behaviour

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Feb 2, 2016, 20:22 UTC
Message-ID
<1454444532.2713.1.camel@kaarsemaker.net>
In-Reply-To
<xmqqsi1asyai.fsf@gitster.mtv.corp.google.com>
On di, 2016-02-02 at 11:32 -0800, Junio C Hamano wrote:
Show 24 quoted lines
> Dennis Kaarsemaker <dennis@kaarsemaker.net> writes:
> 
> > On ma, 2016-02-01 at 15:37 -0800, Junio C Hamano wrote:
> > 
> > > Do you mean
> > > 
> > > 	$ git checkout -b testing
> > >         $ rm -f .git/logs/refs/heads/testing
> > >         $ git log -g testing
> > > 
> > > will be changed from a silent no-op to an abort with error?
> > > 
> > > I do not see a need for such a change--does that count as an
> > > objection?
> > 
> > No, I'd like to change:
> > 
> > $ ls .git/logs/refs/tags/v2.7.0
> > ls: cannot access .git/logs/refs/tags/v2.7.0: No such file or
> > directory
> > $ git (log -g|reflog) v2.7.0
> > From the bizarre behaviour above to a silent noop.
> 
> When there is nothing to show, we do not show anything, 

As I demonstrated in the text that you cut: that is not true. git log -g v2.7.0 and git reflog v2.7.0 are *not* silent, but buggy. I would like to make them silent.

> and that is just like "git log v2.7.0..v2.7.0" is silent.
> 
> I do not find the silence bizarre at all.
I'll take that as an agreement then :)
-- 
Dennis Kaarsemaker
www.kaarsemaker.net
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 10 in “git log -g bizarre behaviour”
  1. Dennis KaarsemakerJan 31, 2016
  2. Junio C HamanoFeb 1, 2016
  3. Dennis KaarsemakerFeb 2, 2016
  4. Junio C HamanoFeb 2, 2016
  5. Dennis KaarsemakerFeb 2, 2016
  6. Junio C HamanoFeb 2, 2016
  7. log -g: ignore revision parameters that have no reflogDennis Kaarsemaker, Feb 2, 2016
  8. Junio C HamanoFeb 3, 2016
  9. Dennis KaarsemakerFeb 3, 2016
  10. Junio C HamanoFeb 3, 2016

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.