OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
submodule.sh: remove unused variable
[git-core/git.git]
/
object.c
diff --git
a/object.c
b/object.c
index
67d9a9e
..
e680d88
100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-104,9
+104,7
@@
struct object *lookup_object(const unsigned char *sha1)
* that we do not need to walk the hash table the next
* time we look for it.
*/
- struct object *tmp = obj_hash[i];
- obj_hash[i] = obj_hash[first];
- obj_hash[first] = tmp;
+ SWAP(obj_hash[i], obj_hash[first]);
}
return obj;
}