summaryrefslogtreecommitdiff
path: root/src/commit_list.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-10-18 08:57:27 -0700
committerEdward Thomson <ethomson@edwardthomson.com>2018-10-19 07:26:17 +0100
commita34f5b0db55ba2bd0080ccd8f08db157a76168a9 (patch)
treec148e881c50014ed089f7082783a4ae25578c18d /src/commit_list.c
parent16fd9ba9379c0cbf0931f9486980353b5a28fda9 (diff)
downloadlibgit2-ethomson/unc_paths.tar.gz
win32: refactor `git_win32_path_remove_namespace`ethomson/unc_paths
Update `git_win32_path_remove_namespace` to disambiguate the prefix being removed versus the prefix being added. Now we remove the "namespace", and (may) add a "prefix" in its place. Eg, we remove the `\\?\` namespace. We remove the `\\?\UNC\` namespace, and replace it with the `\\` prefix. This aids readability somewhat. Additionally, use pointer arithmetic instead of offsets, which seems to also help readability.
Diffstat (limited to 'src/commit_list.c')
0 files changed, 0 insertions, 0 deletions