git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Storing additional information in commit headers
@ 2011-08-01 18:20 martin f krafft
  2011-08-01 18:27 ` Sverre Rabbelier
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: martin f krafft @ 2011-08-01 18:20 UTC (permalink / raw)
  To: git discussion list; +Cc: Petr Baudis, Clemens Buchacher

[-- Attachment #1: Type: text/plain, Size: 1997 bytes --]

Dear list,

I've read — with great interest — the recent discussion on
generation numbers[0], mostly because Clemens Buchacher pointed me
to it as a warning not to mess with commit objects.

0. http://comments.gmane.org/gmane.comp.version-control.git/177146

My intent was to add an extra commit header to select commits as
a way to store extra information needed to automate the management
of interdependent branches and patch generation à la TopGit.

Having read the generation numbers debate, I am not sure that adding
additional commit headers is a bad idea per se. From what
I understand, the main pushback to Linus' idea was that people did
not feel it right to store redundant, calculateable information
permanently in commit objects, where they cannot be altered anymore,
despite the non-zero chance of there being an error. Instead, the
use of a cache was advocated. I do not want to take a side in this
debate with this mail of mine.

Instead, I am investigating ways in which I can store additional
information for a branch, and ideally in a way to make it
transparent and automatic for all users of a project's repo.

Hence, if I were to store additional information in the commit
object headers, this information would by design be correct,
immutable, and non-redundant. I am going to reply to my own mail
with some implementation details to feed the curious, with the hope
to keep this debate focused.

Are there any strong reasons against my use of commit headers for
specific, well-defined purposes in contained use-cases? E.g. are
there tools known to only copy "known" headers, which could
potentially break my assumptions?

Thanks,

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"when a gentoo admin tells me that the KISS principle is good for
 'busy sysadmins', and that it's not an evolutionary step backwards,
 i wonder whether their tape is already running backwards."
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) --]
[-- Type: application/pgp-signature, Size: 1124 bytes --]

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

end of thread, other threads:[~2011-08-04  3:41 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-01 18:20 Storing additional information in commit headers martin f krafft
2011-08-01 18:27 ` Sverre Rabbelier
2011-08-01 18:34   ` martin f krafft
2011-08-01 20:01     ` Clemens Buchacher
2011-08-01 20:55       ` martin f krafft
2011-08-01 18:28 ` martin f krafft
2011-08-01 19:33   ` Martin Langhoff
2011-08-01 20:51     ` martin f krafft
2011-08-01 20:13 ` Jeff King
2011-08-01 21:11   ` martin f krafft
2011-08-02  3:50     ` Jeff King
2011-08-02  8:28       ` martin f krafft
2011-08-02 15:03         ` working prototype of orphan parent commits as datastores (was: Storing additional information in commit headers) martin f krafft
2011-08-02 18:57           ` Jeff King
2011-08-02 19:09             ` martin f krafft
2011-08-02 19:26               ` martin f krafft
2011-08-02 18:51         ` Storing additional information in commit headers Jeff King
2011-08-02 19:06           ` martin f krafft
2011-08-02 19:27             ` per-ref data storage (was: Storing additional information in commit headers) martin f krafft
2011-08-02 21:12               ` per-ref data storage martin f krafft
2011-08-04  3:41               ` per-ref data storage (was: Storing additional information in commit headers) Jeff King
2011-08-04  3:39             ` Storing additional information in commit headers Jeff King
2011-08-02 13:53 ` Michael Haggerty

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