summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-04-17 05:25:23 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-04-17 05:25:23 -0700
commita1ae95058f61d5b2bf9e30153da52ed50cab1e3a (patch)
treebb77951fa27c6c108e29c9d9bfcc00d534008c3a /sh
parent32757507e5e33512ed8ad6da1fd4bd909efd5b6a (diff)
refactor
Diffstat (limited to 'sh')
-rwxr-xr-xsh/ccp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/ccp b/sh/ccp
index c30734c..f0ba485 100755
--- a/sh/ccp
+++ b/sh/ccp
@@ -18,9 +18,9 @@ for branch in $(git branch | awk '{print ($1=="*")?$2:$1}'); do
git pull
done
-git checkout master
-
< "$XDG_DATA_HOME/mydata/cfgl_cherry_picked" read -r picked
+# need checkout to master branch to list new master branch commits
+git checkout master
for commit in $(git rev-list --reverse "$picked..HEAD"); do
git show "$commit"
printf 'Enter branch name to cherry pick this commit: (a for all, enter to skip)\n'