Skip to content

Commit

Permalink
git: add extended git-breview
Browse files Browse the repository at this point in the history
  • Loading branch information
Miklos Vajna committed Mar 27, 2017
1 parent 4154f34 commit 966116b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bash/style-check-files
Expand Up @@ -31,3 +31,5 @@ do
;;
esac
done

exit 0
3 changes: 3 additions & 0 deletions git/NOTES
@@ -0,0 +1,3 @@
git-breview is the same as
<https://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/gerrit/auto-submit/git-breview>,
but also runs style-check-files before anything else.
15 changes: 15 additions & 0 deletions git/git-breview
@@ -0,0 +1,15 @@
#!/bin/bash -e
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

style-check-files
if git-review; then
rev=$(git rev-parse HEAD)
host=$(git config -f .gitreview gerrit.host)
ssh $host gerrit review --code-review=2 $rev
fi

# vim:set shiftwidth=4 softtabstop=4 expandtab:

0 comments on commit 966116b

Please sign in to comment.