]> git.ipfire.org Git - thirdparty/git.git/commit
version: extend get_uname_info() to hide system details
authorUsman Akinyemi <usmanakinyemi202@gmail.com>
Sat, 15 Feb 2025 15:50:50 +0000 (21:20 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2025 17:05:12 +0000 (09:05 -0800)
commit6aa09fd8726b7e8de37c0187a83c2c0fca280358
tree5c18acb38a28d07c24ac43c348ddd53f27722636
parent0a78d61247922f30ebf2ce09025dcaa7bd7e3583
version: extend get_uname_info() to hide system details

Currently, get_uname_info() function provides the full OS information.
In a following commit, we will need it to provide only the OS name.

Let's extend it to accept a "full" flag that makes it switch between
providing full OS information and providing only the OS name.

We may need to refactor this function in the future if an
`osVersion.format` is added.

Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bugreport.c
version.c
version.h