Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/git/arcgit
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | then | ||||
error "index is unclean" | error "index is unclean" | ||||
fi | fi | ||||
if ! git diff-files --quiet | if ! git diff-files --quiet | ||||
then | then | ||||
error "Working directory is unclean" | error "Working directory is unclean" | ||||
fi | fi | ||||
if git ls-files --other --error-unmatch . > /dev/null 2> /dev/null | if git ls-files . --others --exclude-standard --error-unmatch \ | ||||
> /dev/null 2> /dev/null | |||||
then | then | ||||
error "Working directory contains untracked files" | error "Working directory contains untracked files" | ||||
fi | fi | ||||
# We have to do a git checkout in order to run arc, so save the original branch | # We have to do a git checkout in order to run arc, so save the original branch | ||||
# so that we can check it out again once we're done. | # so that we can check it out again once we're done. | ||||
if ! orig_branch=$(git symbolic-ref --short -q HEAD) | if ! orig_branch=$(git symbolic-ref --short -q HEAD) | ||||
then | then | ||||
Show All 18 Lines |