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

Re: Storing notes refs outside of refs/

From
Joshua Jensen <jjensen@workspacewhiz.com>
Date
Aug 26, 2010, 19:20 UTC
Message-ID
<4C76BE90.6040902@workspacewhiz.com>
In-Reply-To
<7vlj7tkxvn.fsf@alter.siamese.dyndns.org>
  ----- Original Message -----
From: Junio C Hamano
Date: 8/26/2010 12:54 PM
Show 6 quoted lines
> Joshua Jensen<jjensen@workspacewhiz.com>  writes
>> gitk --all --not --glob=refs/notes/*
>>
>> does not work.
> I don't think --not there is a good idea because "--not" in rev-list
> parameter means "not reachable from the following commits".
Okay.  I've not used it before.
> It may be useful if you made "--all --glob=!refs/notes/*" to work,
> though.  I could picture myself buying such a change.
>
> Or just use "--branches --tags" instead, perhaps?

gitk --branches --remotes --tags is long to type. (Let's ignore git aliases for the moment.)

The deal is, refs/notes/ showing in git log --all serves no purpose, in my opinion. If it does for somebody else, I'd love to hear.

What if there was a configuration setting applied to 'git log --all' as a filter for refs I never want to see in the --all view?

git config --add core.logfilter refs/notes/* git config --add core.logfilter refs/game-p4/*

I also like the negated --glob syntax you showed above.

Another possibly useful idea is an extra 'git log' parameter --brt (for --branches, --remotes, --tags).

Thoughts? I'll see if I can find some time to work on something once I have a bit of direction.

Josh
Previous: Junio C HamanoNext: Tomas Carnecky
Message 5 of 8 in “Storing notes refs outside of refs/”
  1. Joshua JensenAug 26, 2010
  2. Junio C HamanoAug 26, 2010
  3. Joshua JensenAug 26, 2010
  4. Junio C HamanoAug 26, 2010
  5. Joshua JensenAug 26, 2010
  6. Tomas CarneckyAug 26, 2010
  7. Sverre RabbelierAug 26, 2010
  8. Tomas CarneckyAug 26, 2010

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.