Skip to content

Commit 55cc266

Browse files
authored
Merge pull request #12 from nschlimm/feature/v2.1.6
Feature/v2.1.6
2 parents 2ada3a8 + a7e1ec3 commit 55cc266

File tree

6 files changed

+30
-7
lines changed

6 files changed

+30
-7
lines changed

EasyKey.git/ezk-git-extras.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,51 @@ 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

4350
}
4451

52+
monthlySummary() {
53+
git log --oneline --format='%C(auto)%ad %h %d' --date=format:'%Y-%m-%d' | awk '{print substr($1, 1, 7)}' | sort | uniq -c | awk '{print $2, $1}'
54+
}
55+
4556
menuInit "Git extras menu"
4657
submenuHead "Project information"
4758
menuItem a "Project summary in commits" "git summary"
@@ -52,6 +63,7 @@ menuItem e "Show information about the repo" "git info"
5263
menuItem f "Generate changelog" "git changelog -a"
5364
menuItem g "Show tree" "git show-tree"
5465
menuItem h "Show activity calendar" "git cal"
66+
menuItem i "Monthly count of commits" monthlySummary
5567
submenuHead "Author information"
5668
menuItem k "List authors" "git authors --list"
5769
menuItem l "Find out what somebody did since ..." findOut

EasyKey.git/ezk-git-functions.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ function addAllUntracked () {
7373

7474
function mergeChanges () {
7575

76+
importantLog "Checking for merge requirements from remote origin"
77+
7678
# Get the name of the current branch
7779
current_branch=$(git rev-parse --abbrev-ref HEAD)
7880

@@ -81,7 +83,10 @@ function mergeChanges () {
8183
behind_count=$(git rev-list --count ${current_branch}..${current_branch}@{upstream})
8284

8385
# Check if the current branch is ahead of the remote branch
84-
if [ $ahead_count -gt 0 ]; then
86+
if [ $ahead_count -eq 0 ]; then
87+
echo "Your current branch '$current_branch' is in sync with origin."
88+
echo "... nothing to merge ..."
89+
elif [ $ahead_count -ge 0 ]; then
8590
echo "Your current branch '$current_branch' is ahead of its remote counterpart by $ahead_count commit(s)."
8691
echo "... nothing to merge ..."
8792
elif [ $behind_count -gt 0 ]; then

EasyKey.kubectl/ezk-kubectl-functions.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,8 @@ kubeContext() {
234234
deplomentActualStatus
235235
}
236236

237+
viewSecrets() {
238+
selectItem "kubectl get secrets" "awk '{print \$1}'"
239+
if [[ $fname == "" ]]; then return 0; fi
240+
executeCommand "kubectl edit secret $fname"
241+
}

EasyKey.kubectl/kubectl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ menuInit "EasyKey.kubectl"
3333
submenuHead "Other stuff "
3434
menuItemClm I "List images in contexts" listImagesInUse J "Ingress configuration" "kubectl get ing -o json | jq -r '.items[].spec.rules[].http.paths[]'"
3535
menuItemClm K "Describe ingress" "kubectl describe ing" "L" "Edit config map" editConfigMap
36-
menuItem T "Edit Ingress" "kubectl edit ingress"
36+
menuItemClm T "Edit Ingress" "kubectl edit ingress" U "View/Edit secrets" viewSecrets
3737
startMenu "kubeContext"
3838
echo "bye, bye, homie!"
3939

EasyKey.maven/ezk-maven-functions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ startSpringBoot() {
3939
"logging.level.sql=TRACE" \
4040
"spring.jpa.show-sql=true" \
4141
"logging.level.org.springframework=DEBUG" \
42+
"logging.level.org.springframework.jdbc.core=TRACE" \
4243
"management.endpoints.web.exposure.include=mappings" \
4344
"logging.group.tomcat=org.apache.catalina,org.apache.coyote,org.apache.tomcat,--logging.level.tomcat=DEBUG" \
4445
"logging.level.org.hibernate=DEBUG" \

shellmenu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#################################
66

77
# Release
8-
release=2.1.5
8+
release=2.1.6
99

1010
# Colors
1111
clrBlack=0

0 commit comments

Comments
 (0)