Skip to content

Commit

Permalink
feat(build): add prefix (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Mar 25, 2024
1 parent 54054c3 commit d1adeb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/make/git.mak
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
BRANCH:=$(shell git branch --show-current)
PREFIX:=$(shell ruby -e 't, n = ARGV[0].split("/"); print "#{t}(#{n}):" unless t.nil?' $(BRANCH))

master:
git checkout master
Expand Down Expand Up @@ -35,7 +36,7 @@ amend: add

# Commit the latest changes.
commit: add
git commit -am "$(msg)"
git commit -am "$(PREFIX) $(msg)"

# Push the latest changes.
push:
Expand Down

0 comments on commit d1adeb7

Please sign in to comment.