Code

Separate blame revision and file argument by "--" to avoid problems
authorJonas Fonseca <fonseca@diku.dk>
Fri, 10 Oct 2008 12:00:47 +0000 (14:00 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 10 Oct 2008 12:00:47 +0000 (14:00 +0200)
NEWS
tig.c

diff --git a/NEWS b/NEWS
index 7b9c0feeef14d64ad23338275906afd0a6942b98..5719d46ea9e4e6516bd901b414bc629dd710b436 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,10 @@ Improvements:
    tracked remotes, remotes.
  - Add bash completion for blame.
 
+Bug fixes:
+
+ - Separate blame revision and file argument by "--" to avoid problems.
+
 tig-0.12.1
 ----------
 
diff --git a/tig.c b/tig.c
index 265ea46e27f3445155be86aefd8fc0b94aeca441..337bac97e1829b33f24c8fde84589da0d8f723a3 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -3488,7 +3488,7 @@ struct blame {
 };
 
 #define BLAME_CAT_FILE_CMD "git cat-file blob %s:%s"
-#define BLAME_INCREMENTAL_CMD "git blame --incremental %s %s"
+#define BLAME_INCREMENTAL_CMD "git blame --incremental %s -- %s"
 
 static bool
 blame_open(struct view *view)