]> git.ipfire.org Git - thirdparty/git.git/commit
version: refactor get_uname_info()
authorUsman Akinyemi <usmanakinyemi202@gmail.com>
Sat, 15 Feb 2025 15:50:49 +0000 (21:20 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2025 17:05:12 +0000 (09:05 -0800)
commit0a78d61247922f30ebf2ce09025dcaa7bd7e3583
tree52572e28b9fbca5fd2281f6fcd2507210bd79c18
parentcdfd081df6fa42e6cd0da1d978d41b836c1f292b
version: refactor get_uname_info()

Some code from "builtin/bugreport.c" uses uname(2) to get system
information.

Let's refactor this code into a new get_uname_info() function, so
that we can reuse it in a following commit.

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