Debian Codegraph @

Utilities/GitSetup/setup-git-aliases

raw
1 #!/usr/bin/env bash
2
3 # Alias to checkout a pull request by its numerical id
4 git config alias.pr "!bash Utilities/GitSetup/git-pr"
5 # Remove previously checked out pull request
6 git config alias.pr-clean '!git checkout master ; git for-each-ref refs/heads/pr/* --format="%(refname)" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done'
7
8 # Alias to push the current topic branch to GitHub
9 git config alias.review-push "!bash Utilities/GitSetup/git-review-push"
10
11 git config alias.gerrit-push \
12 "!bash -c 'echo \\\"git gerrit-push\\\" is deprecated. Please use \\\"git review-push\\\" instead.'"
13
14 # Useful alias to see what commits are on the current branch with respect to
15 # upstream/master
16 git config alias.prepush 'log --graph --stat upstream/master..'