Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add issues alias for parsing mentions of issue numbers in log #3

Merged
merged 1 commit into from
Jun 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add issues alias for parsing mentions of issue numbers in log
  • Loading branch information
Mchl committed Jun 20, 2016
commit 59a75db063635f6b786b5f869c766a82d5939444
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