]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
Remove branch creation command from fast-import.
authorShawn O. Pearce <spearce@spearce.org>
Thu, 24 Aug 2006 22:45:26 +0000 (18:45 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 14 Jan 2007 07:15:06 +0000 (02:15 -0500)
commit00e2b8842c58e451fcf8038287c8420423bab50a
tree459286e765d328d61a456d3ca1d914176df3b249
parent8d8928b0511313ba1740d39c3920f8f12f36a10a
Remove branch creation command from fast-import.

Jon Smirl was finding it difficult to alter cvs2svn to generate
branch commands prior to the first commit of the same branch.
This change moves the 'from' command to be an optional parameter of
the 'commit' command, thereby allowing a new branch to be defined
at the moment it gets used to create the first commit on that branch.

This change makes it impossible to create a branch with no commits
on it as at least one commit is needed to register the branch.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c