Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Add "git jira" command #119

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
git cherry-pick @{-1}~${1:-1}...@{-1}~0; \
}; f"

jira = "!f() { \
jiraBaseUrl=\"https://$(git config --get salcode.jiraSubdomain).atlassian.net/browse/\"; \
open $jiraBaseUrl$(git rev-parse --abbrev-ref HEAD | sed 's/^.*\\/\\([a-zA-z]\\{1,\\}-[0-9]\\{1,\\}\\).*/\\1/'); \
}; f"

# Move to the given branch the last n commits.
# @param string $1 The destination branch (create if does not exist).
# @param int $2 The number of commits to move. Defaults to 1.
Expand Down