* tar commit header names
@ 2007-03-26 16:39 Daniel Barkalow
2007-03-29 16:07 ` René Scharfe
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Barkalow @ 2007-03-26 16:39 UTC (permalink / raw
To: git
I'm entirely ignorant of pax header stuff, but would it be possible to
have the pax header specify which project this commit is from (which has
to come from a git-archive option, clearly). Also, could
git-get-tar-commit-id have an option to look for more pax headers beyond
the first? (I'm building tar files by appending multiple archives for
different projects from git-archive, and I suddenly find the embedded
commit id is helpful, and surprisingly inaccessible in this context.)
-Daniel
*This .sig left intentionally blank*
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tar commit header names
2007-03-26 16:39 tar commit header names Daniel Barkalow
@ 2007-03-29 16:07 ` René Scharfe
2007-03-29 16:55 ` Daniel Barkalow
0 siblings, 1 reply; 3+ messages in thread
From: René Scharfe @ 2007-03-29 16:07 UTC (permalink / raw
To: Daniel Barkalow; +Cc: git
Daniel Barkalow schrieb:
> I'm entirely ignorant of pax header stuff, but would it be possible to
> have the pax header specify which project this commit is from (which has
> to come from a git-archive option, clearly).
Technically, yes. The commit ID is stored in a comment, more info could
appended to it. Adding more stuff there would necessitate an ordering
scheme, though. I'm not sure this is useful enough. There already is a
nice convention on where to store the project name, description and URL:
in a file named 'README'. :)
> Also, could
> git-get-tar-commit-id have an option to look for more pax headers beyond
> the first? (I'm building tar files by appending multiple archives for
> different projects from git-archive, and I suddenly find the embedded
> commit id is helpful, and surprisingly inaccessible in this context.)
This could be done, at the cost of git-get-tar-commit-id having to be
able to really parse tar files in order to seek to the end of the first
and thus to the start of the appended one. Right now it simply reads
the first few bytes, quickly checks if this looks like a tar file and
prints the commit ID, if one is found.
The right place to add generic archive comment extraction capabilities
(with multi-archive support) would be a general purpose archiver like
GNU tar, no?
René
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tar commit header names
2007-03-29 16:07 ` René Scharfe
@ 2007-03-29 16:55 ` Daniel Barkalow
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Barkalow @ 2007-03-29 16:55 UTC (permalink / raw
To: René Scharfe; +Cc: git
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1168 bytes --]
On Thu, 29 Mar 2007, René Scharfe wrote:
> Daniel Barkalow schrieb:
> > I'm entirely ignorant of pax header stuff, but would it be possible to
> > have the pax header specify which project this commit is from (which has
> > to come from a git-archive option, clearly).
>
> Technically, yes. The commit ID is stored in a comment, more info could
> appended to it. Adding more stuff there would necessitate an ordering
> scheme, though. I'm not sure this is useful enough. There already is a
> nice convention on where to store the project name, description and URL:
> in a file named 'README'. :)
Ah, and the comment applies until the next comment, so the common prefix
of the files in the area with the comment explains it. I was missing what
the rules for regions of applicability of pax global headers are. Now, if
I could convince... something... to report what comments apply to what
files, I'd be set. And that's clearly beyond the scope of git. (Although
maybe git-get-... should know how to invoke some other utility on a
multiple-project archive once some such tool is known.)
-Daniel
*This .sig left intentionally blank*
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-29 16:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-26 16:39 tar commit header names Daniel Barkalow
2007-03-29 16:07 ` René Scharfe
2007-03-29 16:55 ` Daniel Barkalow
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).