File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,13 @@ Shows the Git push stats to the remote origin for the current branch - number of
26
26
27
27
Utilizes adjacent scripts:
28
28
29
- git_origin_log_to_head .sh
29
+ git_origin_commit_count_to_push .sh
30
30
31
- git_origin_diff_to_head.sh
31
+ git_origin_line_count_to_push.sh
32
+
33
+ git_origin_diff_to_push.sh
34
+
35
+ git_origin_files_to_push.sh
32
36
"
33
37
34
38
# used by usage() in lib/utils.sh
@@ -41,12 +45,10 @@ help_usage "$@"
41
45
42
46
num_commits=" $( " $srcdir /git_origin_commit_count_to_push.sh" ) "
43
47
44
- num_lines_diff=" $( " $srcdir /git_origin_diff_to_push.sh" | wc -l | sed ' s/[[:space:]]*//g' ) "
45
-
46
- # delete the last line of diff only if it's blank,
47
- # so that when there is nothing to push we get 0 instead of 1 line as the result
48
48
num_lines_changed=" $( " $srcdir /git_origin_line_count_to_push.sh" ) "
49
49
50
+ num_lines_diff=" $( " $srcdir /git_origin_diff_to_push.sh" | wc -l | sed ' s/[[:space:]]*//g' ) "
51
+
50
52
files=" $( " $srcdir /git_origin_files_to_push.sh" ) "
51
53
52
54
files_added=" $( grep -c ' ^A' <<< " $files" || :) "
You can’t perform that action at this time.
0 commit comments