File tree 1 file changed +5
-14
lines changed
1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change 3
3
# Automate the process of updating the CHANGELOG.md file, based on the latest commit
4
4
# messages from the dotfiles submodule.
5
5
#
6
- # Version: v1.1.1
6
+ # Version: v1.1.2
7
7
# License: MIT License
8
8
# Copyright (c) 2024-2025 Hunter T. (StrangeRanger)
9
9
#
10
10
# #######################################################################################
11
11
# ###[ Global Variables ]################################################################
12
12
13
13
14
- # ##
15
- # ## Configurable variables.
16
- # ##
17
-
18
- readonly C_REFERENCE_BRANCH=" main"
19
-
20
- # ##
21
- # ## Non-configurable variables.
22
- # ##
23
-
14
+ readonly C_REF_BRANCH=" origin/main"
24
15
readonly C_CHANGELOG=" CHANGELOG.md"
25
16
readonly C_TMP_CHANGELOG=" CHANGELOG.tmp"
26
17
readonly C_SUBMODULE_PATH=" submodules/dotfiles"
27
18
28
- C_REFERENCE_BRANCH_COMMIT =$( git rev-parse " $C_REFERENCE_BRANCH " :submodules/dotfiles)
19
+ C_REF_BRANCH_COMMIT =$( git rev-parse " $C_REF_BRANCH " :submodules/dotfiles)
29
20
C_DATE=$( date +%Y-%m-%d)
30
- readonly C_REFERENCE_BRANCH_COMMIT C_DATE
21
+ readonly C_REF_BRANCH_COMMIT C_DATE
31
22
32
23
# # ANSI color codes.
33
24
C_BLUE=" $( printf ' \033[0;34m' ) "
@@ -55,7 +46,7 @@ git submodule update --init "$C_SUBMODULE_PATH"
55
46
echo " ${C_INFO} Checking out the latest commit of the submodule 'dotfiles' in the" \
56
47
" reference branch..."
57
48
58
- git -C " $C_SUBMODULE_PATH " checkout " $C_REFERENCE_BRANCH_COMMIT "
49
+ git -C " $C_SUBMODULE_PATH " checkout " $C_REF_BRANCH_COMMIT "
59
50
60
51
# ##
61
52
# ## Extract latest commit messages.
You can’t perform that action at this time.
0 commit comments