git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Hidden refs
@ 2010-10-13 15:22 Marc Branchaud
  2010-10-13 15:32 ` Stephen Bash
  2010-10-13 17:35 ` Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Marc Branchaud @ 2010-10-13 15:22 UTC (permalink / raw)
  To: Git Mailing List

Hi all,

We want to have our build system record, in our repo, which commits
correspond to which builds.

Nominally, this is a job for tags.  But we don't want to have to look at
these tags all the time.  We particularly just want to tag the repo when we
make an actual release -- tags are a Big Deal for us.

Notes are an option, though they feel a bit heavy for this application.  And
although we can store the build notes in their own refspace, it would (I
believe) be a little clunky to make commands like checkout and log work with
the commits that were noted by the build system.

It struck me that it would be neat to have hidden refs in the refs/
directory.  I experimented a bit with a "refs/.builds" directory:

* "git update-ref refs/.builds/One" fails with "Cannot lock the
  ref 'refs/.builds/One'."  So I created a ref the regular way
  (refs/blah/One) and copied the "One" file into refs/.builds/.

* Commands like show, checkout, and log all worked fine with
  "refs/.builds/One"

* "git show-ref" ignores the entries in refs/.builds/.

* So the .builds/ refs don't show up in gitk -- yay!

* "git push origin +refs/.builds/One fails with "remote part of refspec is
not a valid name in +refs/.builds/One".

* Completion in bash doesn't work with entries in refs/.builds/.

So I'm wondering if it makes sense to properly support hidden directories in
refs/, and what it would take to do so.  (I image, for example, that things
would behave quite differently on Windows...)

Thoughts?

		M.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-13 17:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13 15:22 [RFC] Hidden refs Marc Branchaud
2010-10-13 15:32 ` Stephen Bash
2010-10-13 16:14   ` Marc Branchaud
2010-10-13 17:35 ` Jeff King
2010-10-13 17:42   ` Junio C Hamano
2010-10-13 17:46     ` Jeff King
2010-10-13 17:51       ` Junio C Hamano
2010-10-13 17:53         ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).