Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
dwim_ref: fix dangling symref warning
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 6393e1b36218e5f8970b0c43092b07f5d94b0bce..a51d2cd1bed0c18b26f8f8123f1dab398a5019d8 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-225,7
+225,7
@@
int unregister_shallow(const unsigned char *sha1)
if (pos < 0)
return -1;
if (pos + 1 < commit_graft_nr)
- mem
cpy
(commit_graft + pos, commit_graft + pos + 1,
+ mem
move
(commit_graft + pos, commit_graft + pos + 1,
sizeof(struct commit_graft *)
* (commit_graft_nr - pos - 1));
commit_graft_nr--;