Re: [PATCH v3 6/6] diff: shortcut for diff'ing two binary SHA-1 objects

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH v3 6/6] diff: shortcut for diff'ing two binary SHA-1 objects

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:02:16

Nguyễn Thái Ngọc Duy  [off-list ref] writes:
quoted hunk
diff --git a/t/t1050-large.sh b/t/t1050-large.sh
index 711f22c..b294963 100755
--- a/t/t1050-large.sh
+++ b/t/t1050-large.sh
@@ -116,6 +116,14 @@ test_expect_success 'diff --stat' '
 	git diff --stat HEAD^ HEAD
 '
 
+test_expect_success 'diff' '
+	git diff HEAD^ HEAD
+'
+
+test_expect_success 'diff --cached' '
+	git diff --cached HEAD^
+'
What are these checking?  No check for their outcome?
 test_expect_success 'hash-object' '
 	git hash-object large1
 '

Re: [PATCH v3 6/6] diff: shortcut for diff'ing two binary SHA-1 objects

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:02:16

On Fri, Aug 15, 2014 at 12:00 AM, Junio C Hamano [off-list ref] wrote:
Nguyễn Thái Ngọc Duy  [off-list ref] writes:
quoted
diff --git a/t/t1050-large.sh b/t/t1050-large.sh
index 711f22c..b294963 100755
--- a/t/t1050-large.sh
+++ b/t/t1050-large.sh
@@ -116,6 +116,14 @@ test_expect_success 'diff --stat' '
      git diff --stat HEAD^ HEAD
 '

+test_expect_success 'diff' '
+     git diff HEAD^ HEAD
+'
+
+test_expect_success 'diff --cached' '
+     git diff --cached HEAD^
+'
What are these checking?  No check for their outcome?
The first test in this file set $GIT_ALLOC_LIMIT and these commands
would not succeed without the patch. But yes I can check the "binary
files differ" too.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help