Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: tools/git/post-checkout

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/git/move_source_file.py ('k') | tools/git/post-merge » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 script=$(readlink $0)
7 source $(dirname ${script:-$0})/git-utils.sh
8
9 old_ref=$1 # Previous HEAD.
10 new_ref=$2 # Current HEAD.
11 branch_switch=$3 # Whether we switched branches.
12
13 if [ $old_ref == $new_ref ]; then
14 if ! git diff-index --quiet HEAD $(git rev-parse --show-cdup)DEPS; then
15 warn "DEPS has local modifications; do you need to re-run gclient sync?"
16 fi
17 else
18 if git diff-tree $old_ref $new_ref | grep -qs $'\tDEPS$'; then
19 warn "DEPS has changed; you probably need to re-run gclient sync."
20 fi
21 fi
22
OLDNEW
« no previous file with comments | « tools/git/move_source_file.py ('k') | tools/git/post-merge » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698