add -T option to gitcopy which copies commits as trello title
This commit is contained in:
parent
fe1a13a783
commit
8362c60937
@ -132,7 +132,7 @@ function init_db() {
|
||||
|
||||
function gitcopy() {
|
||||
n=1
|
||||
while getopts "c:n:t:" o; do
|
||||
while getopts "c:n:t:T" o; do
|
||||
case "${o}" in
|
||||
c)
|
||||
commit=${OPTARG}
|
||||
@ -143,6 +143,9 @@ function gitcopy() {
|
||||
t)
|
||||
trelloCardName=${OPTARG}
|
||||
;;
|
||||
T)
|
||||
trelloCardName=`git log $commit --pretty="%s" | head -n $n`
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
|
@ -14,3 +14,5 @@ fi
|
||||
for config_file ($HOME/.yadr/zsh/*.zsh) source $config_file
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
Loading…
Reference in New Issue
Block a user