summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c55068)
raw | patch | inline | side by side (parent: 4c55068)
author | Simon 'corecode' Schubert <corecode@fs.ei.tum.de> | |
Thu, 1 Feb 2007 10:43:39 +0000 (11:43 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Feb 2007 22:10:01 +0000 (14:10 -0800) |
This can be used to compress multiple changesets into one, for example
like
git cvsexportcommit -P cvshead mybranch
without having to do so in git first.
Signed-off-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
like
git cvsexportcommit -P cvshead mybranch
without having to do so in git first.
Signed-off-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-cvsexportcommit.txt | patch | blob | history | |
git-cvsexportcommit.perl | patch | blob | history |
index 347cbcec353f0ed82e1bdc57766610e6251d7f96..27d531b888ef0468022e2ec0780729acc5151147 100644 (file)
SYNOPSIS
--------
-'git-cvsexportcommit' [-h] [-v] [-c] [-p] [-a] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
+'git-cvsexportcommit' [-h] [-v] [-c] [-P] [-p] [-a] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
DESCRIPTION
-f::
Force the merge even if the files are not up to date.
+-P::
+ Force the parent commit, even if it is not a direct parent.
+
-m::
Prepend the commit message with the provided prefix.
Useful for patch series and the like.
index 4863c91fe3c713c9e1b05d78b9bd22583ff4a4c0..870554eade66d1744c561d4cba33c41dd7701e55 100755 (executable)
--- a/git-cvsexportcommit.perl
+++ b/git-cvsexportcommit.perl
die "GIT_DIR is not defined or is unreadable";
}
-our ($opt_h, $opt_p, $opt_v, $opt_c, $opt_f, $opt_a, $opt_m );
+our ($opt_h, $opt_P, $opt_p, $opt_v, $opt_c, $opt_f, $opt_a, $opt_m );
-getopts('hpvcfam:');
+getopts('hPpvcfam:');
$opt_h && usage();
last;
}; # found it
}
- die "Did not find $parent in the parents for this commit!" if !$found;
+ die "Did not find $parent in the parents for this commit!" if !$found and !$opt_P;
} else { # we don't have a parent from the cmdline...
if (@parents == 1) { # it's safe to get it from the commit
$parent = $parents[0];