put 12 spaces before commit stat info
This commit is contained in:
parent
2a32e0e068
commit
d59cc35157
@ -154,7 +154,8 @@ function gitcopy() {
|
||||
prefix=`git remote get-url origin | sed -E 's/git@github.com:/https:\/\/github.com\//g' | sed -E 's/(.*)\.git/\1/'`
|
||||
project_name=`echo $prefix | sed -E 's/.*\/(.*)/\1/'`
|
||||
commits=`git log $commit -n $n --stat --pretty="
|
||||
* [$project_name]($prefix/commit/%H) %an: **%s**" | sed 's/^[^*]/> /'`
|
||||
* [$project_name]($prefix/commit/%H) %an: **%s**" | sed 's/^[^*]/ /'`
|
||||
echo $commits
|
||||
which pbcopy &> /dev/null
|
||||
if [[ $? == '0' ]]; then
|
||||
echo $commits | pbcopy
|
||||
|
Loading…
Reference in New Issue
Block a user