summaryrefslogtreecommitdiffstats
path: root/pkt-line.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-05-25 21:58:54 +0200
committerJunio C Hamano <gitster@pobox.com>2020-05-27 19:07:06 +0200
commit9a9f0d3fc0888599723812be62fa2d7b3cc4d2d6 (patch)
treefbe25d80f7d8834a26e0a453214620901308398b /pkt-line.h
parentconnect: add function to fetch value of a v2 server capability (diff)
downloadgit-9a9f0d3fc0888599723812be62fa2d7b3cc4d2d6.tar.xz
git-9a9f0d3fc0888599723812be62fa2d7b3cc4d2d6.zip
pkt-line: add a member for hash algorithm
Add a member for the hash algorithm currently in use to the packet reader so it can parse references correctly. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pkt-line.h')
-rw-r--r--pkt-line.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkt-line.h b/pkt-line.h
index fef3a0d792..4cd9435e9a 100644
--- a/pkt-line.h
+++ b/pkt-line.h
@@ -166,6 +166,9 @@ struct packet_reader {
unsigned use_sideband : 1;
const char *me;
+
+ /* hash algorithm in use */
+ const struct git_hash_algo *hash_algo;
};
/*