chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cvs-adjustroot: silently succeed for */CVS/Root entries which already match the new...
[chiark-utils.git]
/
scripts
/
cvs-adjustroot
diff --git
a/scripts/cvs-adjustroot
b/scripts/cvs-adjustroot
index 081859fcdb58b6ba60e97d55c65dfd3b054e8855..0448d9a9f1ae72a03d2730e2a4558c4a050b18af 100755
(executable)
--- a/
scripts/cvs-adjustroot
+++ b/
scripts/cvs-adjustroot
@@
-35,6
+35,7
@@
new="$1"; shift
if $reinvoke; then
filename="$1";
+ if cmp -- "$filename" <(printf "%s\n" "$new"); then exit 0; fi
cmp -- "$filename" <(printf "%s\n" "$old")
printf "%s\n" "$new" >"$filename".new
mv -f -- "$filename".new "$filename"