]> git.ipfire.org Git - thirdparty/git.git/commit - git-p4.py
git-p4: add options --commit and --disable-rebase
authorRomain Merland <merlorom@yahoo.fr>
Fri, 1 Jun 2018 07:46:14 +0000 (09:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jun 2018 21:45:16 +0000 (14:45 -0700)
commitf55b87c1c748cdec7ce1631e6296e3edfd7cfc7d
tree51b21c9b89aa6b67822d22df31bad18579185496
parentccdcbd54c4475c2238b310f7113ab3075b5abc9c
git-p4: add options --commit and --disable-rebase

On a daily work with multiple local git branches, the usual way to
submit only a specified commit was to cherry-pick the commit on
master then run git-p4 submit.  It can be very annoying to switch
between local branches and master, only to submit one commit.  The
proposed new way is to select directly the commit you want to
submit.

Add option --commit to command 'git-p4 submit' in order to submit
only specified commit(s) in p4.

On a daily work developping software with big compilation time, one
may not want to rebase on his local git tree, in order to avoid long
recompilation.

Add option --disable-rebase to command 'git-p4 submit' in order to
disable rebase after submission.

Thanks-to: Cedric Borgese <cedric.borgese@gmail.com>
Reviewed-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Romain Merland <merlorom@yahoo.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-p4.txt
git-p4.py
t/t9807-git-p4-submit.sh