summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-07-13 23:49:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-17 20:54:38 (GMT)
commitb8566f8ff9773c1a3a7f47e9b205cd08b2ad6747 (patch)
treef72c58bd5e6e665962765a34351c6faa8ed63209 /remote.h
parentcd73de47148c16760a62fa3f75cafe015ca764b2 (diff)
downloadgit-b8566f8ff9773c1a3a7f47e9b205cd08b2ad6747.zip
git-b8566f8ff9773c1a3a7f47e9b205cd08b2ad6747.tar.gz
git-b8566f8ff9773c1a3a7f47e9b205cd08b2ad6747.tar.bz2
remote: convert struct push_cas to struct object_id
This gets rid of one use of get_sha1. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.h b/remote.h
index 6c28cd3..2ecf4c8 100644
--- a/remote.h
+++ b/remote.h
@@ -282,7 +282,7 @@ struct ref *get_stale_heads(struct refspec *refs, int ref_count, struct ref *fet
struct push_cas_option {
unsigned use_tracking_for_rest:1;
struct push_cas {
- unsigned char expect[20];
+ struct object_id expect;
unsigned use_tracking:1;
char *refname;
} *entry;