t4211: pass -M to 'git log -M -L...' test

Embarrassingly, the -M test did not actually invoke -M, and thus not really test the feature. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Rast committed Apr 12, 2013 at 18:05 UTC 035ff3987bcbe93a823f47befbe019319c1484b0
2 files changed +49 -9
t/t4211-line-log.sh
+1 -1
@@ -37,7 +37,7 @@ canned_test "-L 20:a.c simple" end-of-file
37 canned_test "-L '/long f/',/^}/:a.c -L /main/,/^}/:a.c simple" two-ranges
38 canned_test "-L 24,+1:a.c simple" vanishes-early
39
40 -canned_test "-L '/long f/,/^}/:b.c' move-support" move-support-f
40 +canned_test "-M -L '/long f/,/^}/:b.c' move-support" move-support-f
41
42 canned_test "-L 4,12:a.c -L :main:a.c simple" multiple
43 canned_test "-L 4,18:a.c -L :main:a.c simple" multiple-overlapping
t/t4211/expect.move-support-f
+48 -8
@@ -19,22 +19,62 @@ diff --git a/b.c b/b.c
19 return s;
20 }
21
22 -commit e6da343666244ea9e67cbe3f3bd26da860f9fe0e
22 +commit a6eb82647d5d67f893da442f8f9375fd89a3b1e2
23 Author: Thomas Rast <trast@student.ethz.ch>
24 -Date: Thu Feb 28 10:49:28 2013 +0100
24 +Date: Thu Feb 28 10:45:16 2013 +0100
25
26 - move file
26 + touch both functions
27
28 -diff --git a/b.c b/b.c
29 ---- /dev/null
30 -+++ b/b.c
31 -@@ -0,0 +4,9 @@
28 +diff --git a/a.c b/a.c
29 +--- a/a.c
30 ++++ b/a.c
31 +@@ -3,9 +3,9 @@
32 +-int f(int x)
33 +long f(long x)
34 + {
35 + int s = 0;
36 + while (x) {
37 + x >>= 1;
38 + s++;
39 + }
40 + return s;
41 + }
42 +
43 +commit f04fb20f2c77850996cba739709acc6faecc58f7
44 +Author: Thomas Rast <trast@student.ethz.ch>
45 +Date: Thu Feb 28 10:44:55 2013 +0100
46 +
47 + change f()
48 +
49 +diff --git a/a.c b/a.c
50 +--- a/a.c
51 ++++ b/a.c
52 +@@ -3,8 +3,9 @@
53 + int f(int x)
54 + {
55 + int s = 0;
56 + while (x) {
57 + x >>= 1;
58 + s++;
59 + }
60 ++ return s;
61 + }
62 +
63 +commit de4c48ae814792c02a49c4c3c0c757ae69c55f6a
64 +Author: Thomas Rast <trast@student.ethz.ch>
65 +Date: Thu Feb 28 10:44:48 2013 +0100
66 +
67 + initial
68 +
69 +diff --git a/a.c b/a.c
70 +--- /dev/null
71 ++++ b/a.c
72 +@@ -0,0 +3,8 @@
73 ++int f(int x)
74 +{
75 + int s = 0;
76 + while (x) {
77 + x >>= 1;
78 + s++;
79 + }
39 -+ return s;
80 +}