8 Jul 2007 21:46
pacman-tools: dg: fix for 'adding excluded deleted files to commit'
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools/.git;a=commitdiff;h=900080cd6e7fa8cb1e12398d1a701b0d8cd37247 commit 900080cd6e7fa8cb1e12398d1a701b0d8cd37247 Author: VMiklos <vmiklos@...> Date: Sun Jul 8 21:45:37 2007 +0200 dg: fix for 'adding excluded deleted files to commit' fix for the following problem: you do a dg rm dir1/foo then a dg rec dir2, then dir1/foo gets included in the commit note: just doing an rm dir1/foo is not affected diff --git a/darcs-git.py b/darcs-git.py index 791e569..507b6da 100755 --- a/darcs-git.py +++ b/darcs-git.py <at> <at> -314,7 +314,7 <at> <at> Options: newlist.append(diff2filename(lines[0])) for i in newlist: os.system("git reset HEAD %s" % i) - os.system("git commit -m '%s' %s" % (options.name, options.edit)) + os.system("git commit -m '%s' %s %s" % (options.name, options.edit, options.files)) # readd the uncommitted new files for i in newlist: os.system("git add %s" % i)
RSS Feed