Skip to content

Commit 309ea28

Browse files
committed
git-pg 1.0.0
1 parent d9a332f commit 309ea28

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

git-pg

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/bin/bash
22

33
git_pretty_graph() {
4+
GIT_PG_VERSION="1.0.0"
5+
46
SOLO=
57
HEAD=
68
NO_PAGER=
79

810
USAGE="
911
[Usage]
1012
11-
$(basename "$0") [-H | --help | --usage] [-h] [-P] [-s]
13+
$(basename "$0") [-H | --help | --usage] [-v | --version] [-h] [-P] [-s]
1214
1315
[Descriptions]
1416
@@ -19,6 +21,9 @@ git_pretty_graph() {
1921
-H | --help | --usage
2022
Show this help text.
2123
24+
-v | --version
25+
Show the version of $(basename "$0").
26+
2227
-h | --head
2328
Scroll to the position of HEAD in the current branch.
2429
@@ -38,6 +43,11 @@ git_pretty_graph() {
3843
exit 0
3944
;;
4045

46+
-v | --version)
47+
echo "$(basename "$0") version $GIT_PG_VERSION"
48+
exit 0
49+
;;
50+
4151
-s | --solo)
4252
SOLO=YES
4353
shift # past argument

0 commit comments

Comments
 (0)