File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Changelog
2
+
3
+ ## [ 1.0.0] - 2021-11-18
4
+
5
+ ### Added
6
+
7
+ - Add git-pg
8
+ - Add installation script
9
+ - Add an example gif of usage
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
git_pretty_graph () {
4
+ GIT_PG_VERSION=" 1.0.0"
5
+
4
6
SOLO=
5
7
HEAD=
6
8
NO_PAGER=
7
9
8
10
USAGE="
9
11
[Usage]
10
12
11
- $( basename " $0 " ) [-H | --help | --usage] [-h] [-P] [-s]
13
+ $( basename " $0 " ) [-H | --help | --usage] [-v | --version] [- h] [-P] [-s]
12
14
13
15
[Descriptions]
14
16
@@ -19,6 +21,9 @@ git_pretty_graph() {
19
21
-H | --help | --usage
20
22
Show this help text.
21
23
24
+ -v | --version
25
+ Show the version of $( basename " $0 " ) .
26
+
22
27
-h | --head
23
28
Scroll to the position of HEAD in the current branch.
24
29
@@ -38,6 +43,11 @@ git_pretty_graph() {
38
43
exit 0
39
44
;;
40
45
46
+ -v | --version)
47
+ echo " $( basename " $0 " ) version $GIT_PG_VERSION "
48
+ exit 0
49
+ ;;
50
+
41
51
-s | --solo)
42
52
SOLO=YES
43
53
shift # past argument
You can’t perform that action at this time.
0 commit comments