Skip to content

Commit 08ba5ce

Browse files
committed
Chengaes in ezk.git extras
1 parent 24fa268 commit 08ba5ce

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

EasyKey.git/ezk-git-extras.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,42 @@ function changeBlame () {
88
git log --pretty=format:'%Cred%h%Creset | %Cgreen%ad%Creset | %s %C(yellow)%d%Creset %C(bold blue)[%an]%Creset %Cgreen(%cr)%Creset' --graph --date=short
99
echo "Enter baseline commit:"
1010
read baseline
11+
[ "$baseline" = "" ] && waitonexit && return
1112
echo "Enter until commit (default HEAD):"
1213
read untilcommit
14+
[ "$untilcommit" = "" ] && waitonexit && return
1315
executeCommand "git guilt $baseline ${untilcommit:-HEAD}"
1416
}
1517

1618
function removeLatest () {
1719
echo "How many commits to remove?"
1820
read ccommit
21+
[ "$ccommit" = "" ] && waitonexit && return
1922
executeCommand "git back $ccommit"
2023
}
2124

2225
function findOut () {
2326
executeCommand "git authors --list"
2427
echo "Enter author to check:"
2528
read author
26-
echo "Since?"
29+
[ "$author" = "" ] && waitonexit && return
30+
echo "Since (in days, e.g. 2)?"
2731
read since
28-
executeCommand "git standup $author \"$since\""
32+
[ "$since" = "" ] && waitonexit && return
33+
executeCommand "git standup -a "$author" -d "$since""
2934
}
3035

3136
function obliterate () {
3237
read -p "This programm completely deletes. Continue (y/n)? " -n 1 -r
3338
echo
39+
[ "$REPLY" = "" ] && waitonexit && return
3440
if [[ $REPLY =~ [Yy]$ ]]; then
3541
selectItem "git ls-files"
36-
read -p "Remove $selected (y/n)? " -n 1 -r
42+
read -p "Remove $fname (y/n)? " -n 1 -r
43+
[ "$REPLY" = "" ] && waitonexit && return
3744
echo
3845
if [[ $REPLY =~ [Yy]$ ]]; then
39-
executeCommand "git obliterate $selected"
46+
executeCommand "git obliterate $fname"
4047
fi
4148
fi
4249

0 commit comments

Comments
 (0)