Usman Akinyemi
cf7ee48190
agent: advertise OS name via agent capability
...
As some issues that can happen with a Git client can be operating system
specific, it can be useful for a server to know which OS a client is
using. In the same way it can be useful for a client to know which OS
a server is using.
Our current agent capability is in the form of "package/version" (e.g.,
"git/1.8.3.1"). Let's extend it to include the operating system name (os)
i.e in the form "package/version-os" (e.g., "git/1.8.3.1-Linux").
Including OS details in the agent capability simplifies implementation,
maintains backward compatibility, avoids introducing a new capability,
encourages adoption across Git-compatible software, and enhances
debugging by providing complete environment information without affecting
functionality. The operating system name is retrieved using the 'sysname'
field of the `uname(2)` system call or its equivalent.
However, there are differences between `uname(1)` (command-line utility)
and `uname(2)` (system call) outputs on Windows. These discrepancies
complicate testing on Windows platforms. For example:
- `uname(1)` output: MINGW64_NT-10.0-20348.3.4.10-87d57229.x86_64\
.2024-02-14.20:17.UTC.x86_64
- `uname(2)` output: Windows.10.0.20348
On Windows, uname(2) is not actually system-supplied but is instead
already faked up by Git itself. We could have overcome the test issue
on Windows by implementing a new `uname` subcommand in `test-tool`
using uname(2), but except uname(2), which would be tested against
itself, there would be nothing platform specific, so it's just simpler
to disable the tests on Windows.
Mentored-by: Christian Couder <chriscool@tuxfamily.org >
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2025-02-19 09:48:37 -08:00
..
2024-12-19 10:58:30 -08:00
2024-12-27 08:28:11 -08:00
2022-09-07 09:46:05 -07:00
2024-02-19 08:45:14 -08:00
2025-01-01 09:21:15 -08:00
2024-12-27 08:28:11 -08:00
2024-12-27 08:28:12 -08:00
2024-12-27 08:28:10 -08:00
2024-12-20 17:34:35 -08:00
2023-04-24 15:16:31 -07:00
2024-11-01 12:53:14 -04:00
2024-12-07 07:52:12 +09:00
2024-12-07 07:52:12 +09:00
2024-12-15 17:54:33 -08:00
2024-06-24 16:39:13 -07:00
2024-04-12 09:03:03 -07:00
2024-09-23 12:47:36 -07:00
2024-11-19 12:31:04 +09:00
2024-11-19 12:31:05 +09:00
2024-11-19 12:31:04 +09:00
2023-05-05 14:28:03 -07:00
2024-07-23 11:02:52 -07:00
2024-11-04 22:53:23 -08:00
2024-11-21 08:21:34 +09:00
2024-12-07 07:52:13 +09:00
2024-11-12 09:32:18 +09:00
2024-06-17 15:55:56 -07:00
2022-10-13 09:32:57 -07:00
2024-09-09 10:07:24 -07:00
2021-10-28 09:57:09 -07:00
2024-06-26 12:56:45 -07:00
2023-01-13 11:58:51 -08:00
2024-02-13 14:44:51 -08:00
2023-12-26 11:06:55 -08:00
2024-01-08 10:06:05 -08:00
2024-03-16 09:31:42 -07:00
2024-12-13 07:33:38 -08:00
2024-08-22 14:59:22 -07:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:06:29 -07:00
2024-08-27 14:51:29 -07:00
2023-10-09 12:06:47 -07:00
2023-10-09 12:06:44 -07:00
2024-10-10 13:09:13 -07:00
2024-03-25 16:45:41 -07:00
2024-03-04 14:05:13 -08:00
2024-12-10 10:04:55 +09:00
2022-09-07 09:46:07 -07:00
2023-12-26 11:06:55 -08:00
2024-07-22 17:32:36 -07:00
2024-10-08 23:35:45 -07:00
2023-10-09 12:06:29 -07:00
2022-10-13 09:32:56 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2024-04-16 22:39:08 -07:00
2021-11-09 09:39:11 -08:00
2023-11-26 10:07:05 +09:00
2023-12-26 11:06:55 -08:00
2023-12-26 11:06:57 -08:00
2023-06-12 13:52:51 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:04:21 -07:00
2024-09-12 11:02:19 -07:00
2024-11-19 12:31:04 +09:00
2024-03-01 14:38:54 -08:00
2024-02-20 15:03:13 -08:00
2024-04-23 11:52:40 -07:00
2024-11-04 22:53:23 -08:00
2023-12-26 11:06:55 -08:00
2023-12-26 11:06:55 -08:00
2021-12-20 14:55:02 -08:00
2024-08-14 10:10:06 -07:00
2024-04-24 10:46:03 -07:00
2024-10-21 16:05:04 -04:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:44 -07:00
2024-08-16 09:46:25 -07:00
2023-10-09 12:06:24 -07:00
2024-03-25 14:00:03 -07:00
2024-05-11 14:31:30 -07:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:06:47 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:06:44 -07:00
2023-11-26 10:07:05 +09:00
2024-11-20 10:37:56 +09:00
2021-11-09 09:39:11 -08:00
2024-09-24 10:20:26 -07:00
2024-03-16 10:04:53 -07:00
2023-10-09 12:47:29 -07:00
2024-07-26 10:53:21 -07:00
2024-10-08 10:22:08 -07:00
2023-06-22 16:29:07 -07:00
2022-09-07 09:46:06 -07:00
2023-10-09 12:06:29 -07:00
2024-10-03 11:23:09 -07:00
2023-10-09 12:06:44 -07:00
2023-11-22 14:23:06 +09:00
2021-11-09 09:39:11 -08:00
2024-10-09 10:40:42 -07:00
2024-02-08 16:22:10 -08:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:04:21 -07:00
2024-08-06 12:01:39 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:44 -07:00
2024-10-21 15:52:48 -04:00
2022-05-04 10:30:01 -07:00
2023-10-02 14:54:29 -07:00
2023-03-30 07:50:43 -07:00
2024-03-25 09:54:07 -07:00
2022-10-24 15:44:20 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2024-03-16 10:04:45 -07:00
2023-11-02 16:53:28 +09:00
2023-10-09 12:06:47 -07:00
2024-12-16 08:45:48 -08:00
2023-10-09 12:06:29 -07:00
2024-08-16 12:50:55 -07:00
2023-10-09 12:06:29 -07:00
2024-02-21 09:58:07 -08:00
2024-12-16 09:45:34 -08:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:47 -07:00
2024-02-21 10:02:55 -08:00
2023-10-30 07:09:57 +09:00
2023-12-26 11:06:55 -08:00
2024-04-15 11:02:43 -07:00
2023-10-09 12:06:44 -07:00
2022-10-13 09:32:56 -07:00
2023-01-13 09:55:45 -08:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2024-06-28 15:53:14 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2024-09-25 08:58:38 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2022-10-24 14:48:05 -07:00
2024-07-15 10:11:43 -07:00
2020-08-17 10:50:14 -07:00
2024-06-04 15:07:08 -07:00
2023-10-09 12:06:29 -07:00
2023-06-12 13:52:51 -07:00
2021-11-09 09:39:11 -08:00
2023-06-12 13:52:51 -07:00
2024-03-28 14:13:50 -07:00
2023-10-09 12:06:29 -07:00
2024-08-08 09:22:21 -07:00
2024-08-14 15:10:24 -07:00
2024-01-02 13:51:30 -08:00
2024-10-21 16:49:31 -04:00
2024-05-07 10:06:03 -07:00
2024-05-13 16:57:17 -07:00
2024-12-13 07:33:39 -08:00
2023-10-09 12:06:29 -07:00
2022-10-13 09:32:56 -07:00
2024-04-19 12:38:50 +02:00
2023-10-09 12:04:21 -07:00
2022-10-13 09:32:56 -07:00
2023-10-09 12:06:29 -07:00
2022-10-13 09:32:56 -07:00
2021-09-14 10:05:40 -07:00
2021-10-28 09:57:09 -07:00
2023-10-09 12:06:29 -07:00
2024-12-02 09:36:17 +09:00
2024-12-19 10:58:32 -08:00
2024-07-08 14:53:08 -07:00
2024-11-25 14:20:15 +09:00
2023-11-26 10:07:05 +09:00
2024-11-25 14:20:15 +09:00
2017-02-15 12:54:20 -08:00
2023-12-26 11:06:55 -08:00
2023-10-30 07:09:55 +09:00
2024-07-09 21:24:42 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2024-09-23 12:47:36 -07:00
2023-12-26 11:06:55 -08:00
2023-12-14 14:38:07 -08:00
2023-03-06 21:51:56 -08:00
2024-08-16 12:50:53 -07:00
2023-07-27 15:26:37 -07:00
2023-12-26 11:06:55 -08:00
2021-05-04 11:52:03 +09:00
2023-07-25 14:55:07 -07:00
2021-04-10 23:36:34 -07:00
2024-07-17 08:48:30 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2024-02-08 16:22:01 -08:00
2023-10-09 12:06:29 -07:00
2025-02-19 09:48:37 -08:00
2024-04-03 10:56:18 -07:00
2024-10-22 12:49:32 -04:00
2023-12-26 11:06:55 -08:00
2024-09-12 11:02:19 -07:00
2024-02-08 16:22:01 -08:00
2024-09-23 12:47:36 -07:00
2021-11-09 09:39:11 -08:00
2024-11-18 09:41:24 +09:00
2023-10-09 12:06:29 -07:00
2020-11-01 15:54:14 -08:00
2020-11-01 15:54:14 -08:00
2022-10-25 15:44:19 -07:00
2021-10-15 10:29:11 -07:00
2021-10-15 10:16:57 -07:00
2022-08-04 14:12:23 -07:00
2024-06-06 08:20:51 -07:00
2024-12-27 08:28:12 -08:00
2023-05-10 10:23:29 -07:00
2023-12-15 14:08:28 -08:00
2021-08-05 15:35:02 -07:00
2024-12-27 08:28:12 -08:00
2024-04-18 14:55:09 -07:00
2024-03-27 09:24:35 -07:00
2023-07-31 09:11:04 -07:00
2024-03-25 16:16:35 -07:00
2023-10-09 12:06:29 -07:00
2024-10-09 16:59:01 -07:00
2020-09-18 15:41:56 -07:00
2024-02-07 08:28:37 -08:00
2022-08-03 13:57:25 -07:00
2020-07-08 22:08:54 -07:00
2024-12-13 07:33:46 -08:00
2024-07-25 08:50:09 -07:00
2023-05-23 17:21:47 +09:00
2024-09-06 14:13:48 -07:00
2023-11-26 10:07:05 +09:00
2024-12-28 10:11:42 -08:00
2023-10-09 12:06:44 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2024-09-24 10:20:26 -07:00
2024-03-12 13:32:11 -07:00