Re: Help requested - trying to build a tool doing whole-tree commits

2012-11-12 Thread ydirson
esr:
Junio C Hamano gitster at pobox.com:
 Perhaps not exactly what you are looking for, but don't we have
 import-tar somewhere in contrib/fast-import hierarchy (sorry, not on
 a machine yet, and I cannot give more details).

If I recall correctly, that can only be used for original import.

You may find my (old) ag-import-patch tool useful.  Although the name does not
imply it, it allows to import a series of releases that can be available either 
as
tarballs or as patches.

http://ydirson.free.fr/soft/git/argit.git/

There's not much doc in there, and not so much I can remember myself from the 
short
help string.  IIRC you can specify which base revision a patch applies to (ie. 
it
may apply to an older revision, not necessarily to the current HEAD).

It has also quite some bitrot (git-* direct invocation, use of cg-tag, surely 
more).
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Help requested - trying to build a tool doing whole-tree commits

2012-11-10 Thread Junio C Hamano
Unknown unknown@unknown.invalid writes:

 (Apologies if this arrives twice. I'm on the road, with somewhat flaky email.)

 Because of my work on reposurgeon, I am sometimes asked to produce git
 repositories for very old projects that not only are still using CVS
 but have ancient releases not in the CVS repository, preserved only
 as tarballs.

Perhaps not exactly what you are looking for, but don't we have
import-tar somewhere in contrib/fast-import hierarchy (sorry, not on
a machine yet, and I cannot give more details).

--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Help requested - trying to build a tool doing whole-tree commits

2012-11-09 Thread Andreas Schwab
Unknown unknown@unknown.invalid writes:

 I need a command or command sequence that will commit an entire file
 tree to a repository...

 (a) Allowing me to specify committer and author metadata, and

 (b) deleting paths not present in the previous commit on the current
 branch, and

 (c) allowing me to specify merge links from other previous commits.

 git commit -a passes (a) and (b) but not (c).

git commit -a won't add new files, so you probably want to use git add
-A  git commit.  I'm not quite sure what you mean with merge links,
but if you want to create merge commits the you'll need to resort to
plumbing: git add -A  git write-tree  git commit-tree  git
update-ref.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html