show changes of files in gitcopy, avoid error info shown
This commit is contained in:
parent
d36dd4dd21
commit
01f8f515e2
@ -153,8 +153,8 @@ function gitcopy() {
|
||||
done
|
||||
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 --pretty="* [$project_name]($prefix/commit/%H) %an: **%s**" | head -n $n`
|
||||
which pbcopy
|
||||
commits=`git log $commit -n $n --stat --pretty="* [$project_name]($prefix/commit/%H) %an: **%s**"`
|
||||
which pbcopy &> /dev/null
|
||||
if [[ $? == '0' ]]; then
|
||||
echo $commits | pbcopy
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user