Browse Source

git: ++forks

Maxim Likhachev 6 years ago
parent
commit
8c6bf3252e
  1. 6
      etc/soft/git/gitconfig

6
etc/soft/git/gitconfig

@ -56,11 +56,11 @@
# Note how defining a function eliminates the need to use sh -c. # Note how defining a function eliminates the need to use sh -c.
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '\n}'; }; f" graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '\n}'; }; f"
# http://gitboard.net
board = !gitboard 2>&-
url = !git remote -v | grep fetch | awk '{ print $2 }' url = !git remote -v | grep fetch | awk '{ print $2 }'
# The last forks of current or specified github repository
forks = "!f() { [ -z "$1" ] && forks $(git url | grep github.com | sed -e 's|^.*github.com/||' | sed 's/.git.*$//') || forks "$1"; }; f"
hub = "!github_clone() { git clone git://github.com/${1}.git; }; github_clone" hub = "!github_clone() { git clone git://github.com/${1}.git; }; github_clone"
nb = "!github_clone() { git clone https://notabug.org/${1}.git; }; github_clone" nb = "!github_clone() { git clone https://notabug.org/${1}.git; }; github_clone"

Loading…
Cancel
Save