summaryrefslogtreecommitdiff
path: root/builtin/ls-remote.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-08-23 13:17:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-08-24 21:47:07 (GMT)
commitf58c7468cde9f4eb6be0f9cc11ad1d140a8a2657 (patch)
tree5ea5d729aae788a117ddb739817f68fbb7fb893b /builtin/ls-remote.c
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb (diff)
downloadgit-f58c7468cde9f4eb6be0f9cc11ad1d140a8a2657.zip
git-f58c7468cde9f4eb6be0f9cc11ad1d140a8a2657.tar.gz
git-f58c7468cde9f4eb6be0f9cc11ad1d140a8a2657.tar.bz2
ls-remote: set packet_trace_identity(<name>)
Set packet_trace_identity() for ls-remote. This replaces the generic "git" identity in GIT_TRACE_PACKET=<file> traces to "ls-remote", e.g.: [...] packet: upload-pack> version 2 [...] packet: upload-pack> agent=git/2.32.0-dev [...] packet: ls-remote< version 2 [...] packet: ls-remote< agent=git/2.32.0-dev Where in an "git ls-remote file://<path>" dialog ">" is the sender (or "to the server") and "<" is the recipient (or "received by the client"). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-remote.c')
-rw-r--r--builtin/ls-remote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/ls-remote.c b/builtin/ls-remote.c
index 1794548..f4fd823 100644
--- a/builtin/ls-remote.c
+++ b/builtin/ls-remote.c
@@ -84,6 +84,8 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
PARSE_OPT_STOP_AT_NON_OPTION);
dest = argv[0];
+ packet_trace_identity("ls-remote");
+
UNLEAK(sorting);
if (argc > 1) {