git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Porcelain specific metadata under .git?
@ 2006-06-14  6:22 Shawn Pearce
  2006-06-14 11:11 ` Andreas Ericsson
  0 siblings, 1 reply; 6+ messages in thread
From: Shawn Pearce @ 2006-06-14  6:22 UTC (permalink / raw)
  To: git

So I'm reaching a point with my Eclipse plugin[*1*] where its
actually doing something with a GIT repository and I want to store a
ref (to a tree, not a commit) under .git/refs/eclipse-workspaces to
help the plugin cache state between workbench restarts.  But there
doesn't really seem to be any policy to what paths under .git are
available for Porcelain and what definately should be off-limits.

I already assume/know that refs/heads and refs/tags are completely
off-limits as they are for user refs only.

I also think the core GIT tools already assume that anything
directly under .git which is strictly a file and which is named
entirely with uppercase letters (aside from "HEAD") is strictly a
temporary/short-lived state type item (e.g. COMMIT_MSG) used by a
Porcelain.

But is saying ".git/refs/eclipse-workspaces" is probably able to
be used for this purpose safe?  :-)


[*1*] The Eclipse plugin is getting close to something that is worth
releasing as an early alpha for other developers.  I think I finally
found the last bug in the pack reading code and am now working on the
basic operations (add/remove/commit/status).  I hope to have all of
that working within a few days, at which point I'll publish/announce
a public GIT repository with the complete source code and an Eclipse
update site for those brave souls who might want to just install it.

-- 
Shawn.

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

end of thread, other threads:[~2006-06-17  0:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14  6:22 Porcelain specific metadata under .git? Shawn Pearce
2006-06-14 11:11 ` Andreas Ericsson
2006-06-14 11:32   ` Jakub Narebski
2006-06-14 13:07     ` Andreas Ericsson
2006-06-14 13:30       ` Junio C Hamano
2006-06-17  0:43       ` Shawn Pearce

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).