Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] git-mv: Keep moved index entries inact

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:59

Possibly related (same subject, not in this thread)

Hi,

On Mon, 21 Jul 2008, Petr Baudis wrote:
On Sat, Jul 19, 2008 at 04:54:20PM -0700, Junio C Hamano wrote:
quoted
Petr Baudis [off-list ref] writes:
quoted
+test_expect_success 'git mv should not change sha1 of moved cache entry' '
+
+	rm -fr .git &&
+	git init &&
+	echo 1 >dirty &&
+	git add dirty &&
+	entry="$(git ls-files --stage dirty | cut -f 1)"
"rev-parse :dirty"?
I want to make sure the whole index entry is intact, not just the sha1.
"rev-parse :dirty" will have to read the index to get at the object name 
of "dirty".  So there you have your index validation for you.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help