Skip to content

Commit 13689a5

Browse files
committed
♻️ Refactor and rename files, move to into lib
1 parent e5c37e5 commit 13689a5

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
shunit2:
22
curl -o shunit2 https://raw.githubusercontent.com/kward/shunit2/master/shunit2
33
test: shunit2
4-
bash test.sh
4+
bash ./lib/test.sh
55
clean:
66
rm -rf shunit2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If successful, prepares the reference in the commit message's trailers.
2929
curl -L https://raw.githubusercontent.com/grissius/tracker-hook/master/scripts/install.sh | bash
3030
```
3131

32-
Alternatively (1) download [hook](https://raw.githubusercontent.com/grissius/tracker-hook/master/hook.sh) manually and save it as `.git/hooks/prepare-commit-msg` of selected repository and (2) make it executable.
32+
Alternatively (1) download [hook](https://raw.githubusercontent.com/grissius/tracker-hook/master/lib/hook.sh) manually and save it as `.git/hooks/prepare-commit-msg` of selected repository and (2) make it executable.
3333

3434
## How to use
3535

File renamed without changes.

test.sh renamed to lib/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
. ./hook.sh --source-only
2+
. ./lib/hook.sh --source-only
33

44
# Helper parser
55
to_issue() { echo $1 | parse_issue || echo NULL; }

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
curl --silent -o .git/hooks/prepare-commit-msg https://raw.githubusercontent.com/grissius/tracker-hook/master/hook.sh
1+
curl --silent -o .git/hooks/prepare-commit-msg https://raw.githubusercontent.com/grissius/tracker-hook/master/lib/hook.sh
22
chmod +x .git/hooks/prepare-commit-msg
33

44
echo "Git hook added (.git/hooks/prepare-commit-msg), I hope you like it! ❤️"

0 commit comments

Comments
 (0)