File: fixes_alias

package info (click to toggle)
kicad 9.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 770,320 kB
  • sloc: cpp: 961,692; ansic: 121,001; xml: 66,428; python: 18,387; sh: 1,010; awk: 301; asm: 292; makefile: 227; javascript: 167; perl: 10
file content (15 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[alias]
	# Alias to simplify marking commits as bug fixes
	# Once the script is enabled, commit your changes and run 'git fixes 123456' to mark the last commit as a fix for issue #123456

	# Enable by executing in the source root directory:
	# git config --add include.path $(pwd)/tools/git/fixes_alias

	fixes = "!f() { \
		COMMIT_MSG=$(git log -n1 --format=%B); \
		git commit --amend -m \"${COMMIT_MSG}\n\nFixes https://gitlab.com/kicad/code/kicad/-/issues/$1\"; \
	}; f"


	# Alias to extract the changelog using ADD/NEW/REMOVE/CHANGE tags from commit messages
	changelog = log -E --grep="ADD:|NEW:|REMOVE[D]?:|CHANGE[D]?:"