diff options
author | 2021-08-23 15:17:49 +0200 | |
---|---|---|
committer | 2021-08-24 14:47:07 -0700 | |
commit | f58c7468cde9f4eb6be0f9cc11ad1d140a8a2657 (patch) | |
tree | 5ea5d729aae788a117ddb739817f68fbb7fb893b /builtin | |
parent | Git 2.32 (diff) | |
download | tgif-f58c7468cde9f4eb6be0f9cc11ad1d140a8a2657.tar.xz |
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')
-rw-r--r-- | builtin/ls-remote.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/ls-remote.c b/builtin/ls-remote.c index 1794548c71..f4fd823af8 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) { |