[Frugalware-git] pacman-tools: dg: this --find-copies-harder was a good idea when we had a smaller FST, but not today

Miklos Vajna vmiklos at frugalware.org
Thu Apr 26 11:08:23 CEST 2012


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=80b06890e1fd270ea729796238be52655b57c9da

commit 80b06890e1fd270ea729796238be52655b57c9da
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Thu Apr 26 11:09:42 2012 +0200

dg: this --find-copies-harder was a good idea when we had a smaller FST, but not today

I find myself using git status instead of 'dg what -s' as the later was
so much slower, due to the above switch.

diff --git a/darcs-git.py b/darcs-git.py
index c4d8681..2ae1223 100755
--- a/darcs-git.py
+++ b/darcs-git.py
@@ -553,7 +553,7 @@ Options:
if os.system("git rev-parse --verify HEAD >/dev/null 2>&1"):
options.head = hashlib.sha1("tree 0\0").hexdigest()
os.system("git update-index --refresh >/dev/null")
-	ret = os.system("git diff %s -M -C --find-copies-harder --exit-code %s %s" % (options.head, options.summary, options.files))
+	ret = os.system("git diff %s -M -C --exit-code %s %s" % (options.head, options.summary, options.files))
if not ret:
print "No changes!"


More information about the Frugalware-git mailing list