diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-02-15 12:54:19 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-15 12:54:19 -0800 |
commit | cbf1860d73b782e7924e63361df485b31225a26a (patch) | |
tree | a86ce71a399fb8153be1552f08e51c58b2c5b5cf /object.c | |
parent | 2f4e87d7777a0bcffa8a7cc3cc52e1e8b2c352ff (diff) | |
parent | 9e2edd66dda418dad751d5eb2e5921e05e57cd30 (diff) | |
download | git-cbf1860d73b782e7924e63361df485b31225a26a.tar.gz |
Merge branch 'rs/swap'
Code clean-up.
* rs/swap:
graph: use SWAP macro
diff: use SWAP macro
use SWAP macro
apply: use SWAP macro
add SWAP macro
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } |