diff options
author | Luke Diamand <luke@diamand.org> | 2017-12-21 11:06:14 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-22 13:30:52 -0800 |
commit | 8cf422dbf1b4bc14a970b7ff5c5fa555f61dd9ed (patch) | |
tree | e3e354548203d51e5fbfdbd704e4e94139b1c597 /Documentation | |
parent | 936d1b989416a95f593bf81ccae8ac62cd83f279 (diff) | |
download | git-8cf422dbf1b4bc14a970b7ff5c5fa555f61dd9ed.tar.gz |
git-p4: update multiple shelved change listsld/p4-multiple-shelves
--update-shelve can now be specified multiple times on the
command-line, to update multiple shelved changelists in a single
submit.
This then means that a git patch series can be mirrored to a
sequence of shelved changelists, and (relatively easily) kept in
sync as changes are made in git.
Note that Perforce does not really support overlapping shelved
changelists where one change touches the files modified by
another. Trying to do this will result in merge conflicts.
Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-p4.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-p4.txt b/Documentation/git-p4.txt index 7436c64a95..d8c8f11c9f 100644 --- a/Documentation/git-p4.txt +++ b/Documentation/git-p4.txt @@ -157,6 +157,12 @@ The p4 changes will be created as the user invoking 'git p4 submit'. The according to the author of the Git commit. This option requires admin privileges in p4, which can be granted using 'p4 protect'. +To shelve changes instead of submitting, use `--shelve` and `--update-shelve`: + +---- +$ git p4 submit --shelve +$ git p4 submit --update-shelve 1234 --update-shelve 2345 +---- OPTIONS ------- @@ -310,7 +316,7 @@ These options can be used to modify 'git p4 submit' behavior. --update-shelve CHANGELIST:: Update an existing shelved changelist with this commit. Implies - --shelve. + --shelve. Repeat for multiple shelved changelists. --conflict=(ask|skip|quit):: Conflicts can occur when applying a commit to p4. When this |