]> scripts.mit.edu Git - wizard.git/blob - bin/gct
Fix documentation bug.
[wizard.git] / bin / gct
1 #!/bin/bash
2 set -e
3 if [ -z "$1" ]
4 then
5     echo "Usage: gct FILE"
6     exit 1
7 fi
8 set -x
9 for file in "$@"
10 do
11     OWNER=$(stat -c "%u:%g" "$file")
12     git checkout --theirs "$file"
13     chown "$OWNER" "$file"
14     git add "$file"
15 done