Skip to content

Commit 22b9d37

Browse files
committed
Nice log option in ezk.git with all commits and branches
1 parent f85c0a6 commit 22b9d37

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

EasyKey.git/ezk-git-atln.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ cherryPick() {
3737
[ "${cbranch}" = "" ] && waitonexit && return
3838
git checkout $cbranch
3939
git cherry-pick $cname
40-
echo -n "Cherry picked $cname. Add files to stage(y/n)?" && wait_for_keypress
40+
echo -n "Cherry picked $cname. Add files to stage(y/n)?" && wait_for_keypress && echo
4141
[ "${REPLY}" != "y" ] && waitonexit && return
4242
git add .
43-
git cherry-pick --continue
44-
echo -n "Push changes(y/n)?" && wait_for_keypress
43+
if [ -f .git/CHERRY_PICK_HEAD ]; then
44+
git cherry-pick --continue
45+
else
46+
echo "No cherry-pick in progress"
47+
fi
48+
echo -n "Push changes(y/n)?" && wait_for_keypress && echo
4549
[ "${REPLY}" != "y" ] && waitonexit && return
4650
git push origin $cbranch
4751
}

EasyKey.git/git.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ menuInit "EasyKey.git"
1616
menuItemClm e "Set upstream to current" setUpstream f "Administer remotes" adminRemotes
1717
submenuHead "Working on local branches "
1818
menuItemClm r "Show branch history" showBranchHisto g "Show reflog" showRepoHisto
19+
menuItemClm l "Show all commits log" "git log --all --graph --decorate --oneline" p "Show all branches (incl. remote)" showAllBranches
1920
menuItemClm v "Checkout remote branch" coRemoteBranch n "Delete local/remote branch" deleteBranch
20-
menuItemClm o "Merge source to target branch" mergeSourceToTarget p "Show all branches (incl. remote)" showAllBranches
2121
menuItemClm k "New local/remote branch checkout" newLocalBranch c "Change commit messages" ammendCommit
22+
menuItem o "Merge source to target branch" mergeSourceToTarget
2223
submenuHead "Other usefull actions "
2324
menuItemClm s "Working with diffs" workingDiffs w "Working with commits" atlassiansView
2425
menuItemClm y "Setting up repositories" settingUp 5 "Git extras" gitExtras

0 commit comments

Comments
 (0)