Skip to content

Commit 63e090c

Browse files
author
Bhavi Dhingra
committed
feat(gcommit): sort the .gitcommitscopes file
1 parent 7ef6efb commit 63e090c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/gcommit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ function add_new_scope() {
173173
echo "${commitScope}" >> "${COMMIT_SCOPE_FILE}" # appends to the file
174174
}
175175
fi
176+
sort "${COMMIT_SCOPE_FILE}" > "${COMMIT_SCOPE_FILE}_sorted"
177+
mv "${COMMIT_SCOPE_FILE}_sorted" "${COMMIT_SCOPE_FILE}"
176178
}
177179

178180
function get_commit_description() {

0 commit comments

Comments
 (0)