git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Unbreak real_path on Windows for already absolute paths (with Visual Studio)

From
SSSven Strickroth <sven@cs-ware.de>
Date
Apr 9, 2019, 07:34 UTC
Message-ID
<950ee9b8-786f-28cd-3e89-ad174fd857a4@cs-ware.de>
In-Reply-To
<0f629384-638f-bfb9-89da-ade335e364fd@web.de>
Am 09.04.2019 um 07:53 schrieb Torsten Bögershausen:
Show 6 quoted lines
>> Regression was introduced in commit
>> 25d90d1cb72ce51407324259516843406142fe89.
> 
> Was it ?
> 25d90d1cb merged this commit:
> 1cadad6f6 (junio/tb/use-common-win32-pathfuncs-on-cygwin)
Yes, I copied the revision of the merge commit.
> And, if I read that correctly,  1cadad6f6 does not change anything for MSVC.
> And the problem with the missing/wrong path resolution was there before
> 1cadad6f6 and after 1cadad6f6.

That's not correct, it was correct before: 1cadad6f6 removes mingw_offset_1st_component from mingw.c which is included by msvc.c. Then the in git-compat.h the new file "compat/win32/path-utils.h" is only included for __CYGWIN__ and __MINGW32__, here _MSC_VER is missing -> that's the regression.

Show 5 quoted lines
> In config.mak.uname  we need to add a line
> compat/win32/path-utils.o
> for the Windows build.
> In the git-for windows codebase I see
>   COMPAT_OBJS +=compat/win32/path-utils
I don't use config.mak.uname and never did, so I can't tell you about that.
-- 
Best regards,
 Sven Strickroth
 PGP key id F5A9D4C4 @ any key-server
Previous: Torsten BögershausenNext: Sven Strickroth
Message 4 of 10 in “Unbreak real_path on Windows for already absolute paths (with Visual Studio)”
  1. Unbreak real_path on Windows for already absolute paths (with Visual Studio)Sven Strickroth, Apr 8, 2019
  2. Taylor BlauApr 9, 2019
  3. Torsten BögershausenApr 9, 2019
  4. Sven StrickrothApr 9, 2019
  5. MSVC: Unbreak real_path for Windows pathsSven Strickroth, Apr 8, 2019
  6. Junio C HamanoApr 9, 2019
  7. Torsten BögershausenApr 9, 2019
  8. Junio C HamanoApr 9, 2019
  9. Torsten BögershausenApr 10, 2019
  10. Junio C HamanoApr 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.