[FFmpeg-cvslog] doc: move out merge script to tools

Clément Bœsch git at videolan.org
Sun Sep 25 20:28:27 EEST 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Sep 25 19:26:39 2016 +0200| [95a7cbb09de1d63ed050371a34794b3fed49b2dc] | committer: Clément Bœsch

doc: move out merge script to tools

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=95a7cbb09de1d63ed050371a34794b3fed49b2dc
---

 doc/libav-merge.txt           | 36 +++++-------------------------------
 tools/libav-merge-next-commit | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 31 deletions(-)

diff --git a/doc/libav-merge.txt b/doc/libav-merge.txt
index 2011ae5..4fd863e 100644
--- a/doc/libav-merge.txt
+++ b/doc/libav-merge.txt
@@ -71,37 +71,11 @@ a different merge conflict style:
 
     $ git config --global merge.conflictstyle diff3
 
-Here is a script to help merging the next commit in the queue:
-
-    #!/bin/sh
-
-    if [ "$1" != "merge" -a "$1" != "noop" ]; then
-       printf "Usage: $0 <merge|noop [REF_HASH]>\n"
-       exit 0
-    fi
-
-    [ "$1" = "noop" ] && merge_opts="-s ours"
-
-    nextrev=$(git rev-list libav/master --not master --no-merges | tail -n1)
-    if [ -z "$nextrev" ]; then
-        printf "Nothing to merge..\n"
-        exit 0
-    fi
-    printf "Merging $(git log -n 1 --oneline $nextrev)\n"
-    git merge --no-commit $merge_opts --no-ff --log $nextrev
-
-    if [ "$1" = "noop" -a -n "$2" ]; then
-       printf "\nThis commit is a noop, see $2\n" >> .git/MERGE_MSG
-    fi
-
-    printf "\nMerged-by: $(git config --get user.name) <$(git config --get user.email)>\n" >> .git/MERGE_MSG
-
-
-The script assumes a remote named libav.
-
-It has two modes: merge, and noop. The noop mode creates a merge with no change
-to the HEAD. You can pass a hash as extra argument to reference a justification
-(it is common that we already have the change done in FFmpeg).
+tools/libav-merge-next-commit is a script to help merging the next commit in
+the queue. It assumes a remote named libav. It has two modes: merge, and noop.
+The noop mode creates a merge with no change to the HEAD. You can pass a hash
+as extra argument to reference a justification (it is common that we already
+have the change done in FFmpeg).
 
 Also see tools/murge, you can copy and paste a 3 way conflict into its stdin
 and it will display colored diffs. Any arguments to murge (like ones to suppress
diff --git a/tools/libav-merge-next-commit b/tools/libav-merge-next-commit
new file mode 100755
index 0000000..9bd03fa
--- /dev/null
+++ b/tools/libav-merge-next-commit
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ "$1" != "merge" -a "$1" != "noop" ]; then
+    printf "Usage: $0 <merge|noop [REF_HASH]>\n"
+    exit 0
+fi
+
+[ "$1" = "noop" ] && merge_opts="-s ours"
+
+nextrev=$(git rev-list libav/master --not master --no-merges | tail -n1)
+if [ -z "$nextrev" ]; then
+    printf "Nothing to merge..\n"
+    exit 0
+fi
+printf "Merging $(git log -n 1 --oneline $nextrev)\n"
+git merge --no-commit $merge_opts --no-ff --log $nextrev
+
+if [ "$1" = "noop" -a -n "$2" ]; then
+    printf "\nThis commit is a noop, see $2\n" >> .git/MERGE_MSG
+fi
+
+printf "\nMerged-by: $(git config --get user.name) <$(git config --get user.email)>\n" >> .git/MERGE_MSG



More information about the ffmpeg-cvslog mailing list