Skip to content

Commit

Permalink
Merge pull request #3 from Mchl/list-issues
Browse files Browse the repository at this point in the history
Add issues alias for parsing mentions of issue numbers in log
  • Loading branch information
joelparkerhenderson committed Jun 20, 2016
2 parents 6e6c13a + 59a75db commit 10d5a96
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,18 @@
# Show who contributed, in descending order by number of commits
whorank = shortlog -sn --no-merges

# List all issues mentioned in commit messages between range of commits
#
# Replace `\\\"ISSUE-[0-9]\\+\\\"` regular expression with one matching your issue tracking system.
# For Jira it should be as simple as putting your project name in place of `ISSUE`.
#
# Best used with tags:
# $ git issues v1.0..v1.1
#
# But will work with any valid commit range:
# $ git issues master..HEAD

issues = !sh -c \"git log $1 --oneline | grep -o \\\"ISSUE-[0-9]\\+\\\" | sort -u\"

### WORKFLOW ALIASES ###

Expand Down

0 comments on commit 10d5a96

Please sign in to comment.