Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15

Re: [PATCH] cvsimport move over to using git for each ref to read refs

From: Andy Whitcroft <hidden>
Date: 2016-06-15 22:42:41

Jakub Narebski wrote:
Andy Whitcroft wrote:
quoted
+       open(H, "git-for-each-ref --format='%(objectname) %(refname)'|") or
By the way, this is equivalent to using "git-show-ref" introduced by Linus.
But if you want commit timestamp
quoted
cvsimport opens all of the files in $GIT_DIR/refs/heads and reads
out the sha1's in order to work out what time the last commit on
that branch was made (in CVS) thus allowing incremental updates.
you can use it in --format as well.
Unfortuantly, for-each-ref only offers us the textual version of this
information not the numeric offset from the epoch which is what
cvsimport is after.

I guess we could teach for-each-ref to output this as well?  Perhaps
something like authorstamp?

-apw
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help