aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/git-rev-list_requires_relative_path___40__fixes_git_ctime__41__.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-10-04 08:51:23 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-10-04 08:51:23 +0000
commitd92c6d9d3f410c11dfec69e743c6529d3a426f95 (patch)
tree2afb377ba84b745829d2a34114e0b17c5af6b6d6 /doc/todo/git-rev-list_requires_relative_path___40__fixes_git_ctime__41__.mdwn
parent356742608f421f06fe78062e8075ba1dbda374f9 (diff)
downloadikiwiki-d92c6d9d3f410c11dfec69e743c6529d3a426f95.tar
ikiwiki-d92c6d9d3f410c11dfec69e743c6529d3a426f95.tar.gz
web commit by http://chris-lamb.co.uk/
Diffstat (limited to 'doc/todo/git-rev-list_requires_relative_path___40__fixes_git_ctime__41__.mdwn')
-rw-r--r--doc/todo/git-rev-list_requires_relative_path___40__fixes_git_ctime__41__.mdwn14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/todo/git-rev-list_requires_relative_path___40__fixes_git_ctime__41__.mdwn b/doc/todo/git-rev-list_requires_relative_path___40__fixes_git_ctime__41__.mdwn
new file mode 100644
index 000000000..dda5cdca5
--- /dev/null
+++ b/doc/todo/git-rev-list_requires_relative_path___40__fixes_git_ctime__41__.mdwn
@@ -0,0 +1,14 @@
+ Index: IkiWiki/Rcs/git.pm
+ ===================================================================
+ --- IkiWiki/Rcs/git.pm (revision 4532)
+ +++ IkiWiki/Rcs/git.pm (working copy)
+ @@ -275,6 +275,9 @@
+
+ my $file = shift || q{--};
+
+ + # Remove srcdir prefix to appease git-rev-list
+ + $file =~ s/^$config{srcdir}\/?//;
+ +
+ # Ignore error since a non-existing file might be given.
+ my ($sha1) = run_or_non('git-rev-list', '--max-count=1', 'HEAD', $file);
+ if ($sha1) {