libgit2/libgit2 — pull request #643 by nulltoken (2012-04-25 20:37:23+00:00)
Title: Fix generation of the header of the patch

Previously

```
diff --git (null)subdir.txt (null)subdir.txt
deleted file mode 100644
index e8ee89e..0000000
--- /dev/null
+++ (null)subdir.txt
```

With the proposed fix

```
diff --git a/subdir.txt b/subdir.txt
deleted file mode 100644
index e8ee89e..0000000
--- a/subdir.txt
+++ /dev/null
```

This looks like more git compliant

```
$ git diff 26a125e..735b6a2
diff --git a/subdir.txt b/subdir.txt
deleted file mode 100644
index e8ee89e..0000000
--- a/subdir.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Is it a bird?
-Is it a plane?
```