File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
- 3.7.12-dev:::2024-05-17_16:44:44
1
+ 3.7.12-dev:::2024-05-17_17:57:26
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # An example hook script to verify what is about to be committed.
4
- # Called by "git commit" with no arguments. The hook should
5
- # exit with non-zero status after issuing an appropriate message if
6
- # it wants to stop the commit.
3
+ # a hook that is executed before each commmit (locally)
7
4
#
8
- # To enable this hook, rename this file to "pre-commit".
5
+ # it ensures that a software version with time stamp
6
+ # uniquely identifies each commmit
7
+ #
8
+ # note: will this cause merge conflicts when
9
+ # collaborators change the version number or
10
+ # version number is changed on GitHub?
11
+ #
12
+ # this script can be installed with:
13
+ # ./pre-commit install
14
+
9
15
10
16
if [ $# -eq 1 ] && [ " $1 " == " install" ]; then
11
17
cp " $0 " -t .git/hooks/
@@ -24,3 +30,5 @@ TIME=$(date +"%Y-%m-%d_%H:%M:%S")
24
30
printf " %s:::%s\n" " $VERSION " " $TIME " > " $FILE "
25
31
26
32
git add " $FILE "
33
+
34
+ exit 0
You can’t perform that action at this time.
0 commit comments