Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
6641 commits
Select commit Hold shift + click to select a range
1413296
Allow using UNC path for git repository
czawadka Jul 13, 2010
a6dfde5
Make mingw_offset_1st_component() behave consistently for all paths.
sunshineco Jul 13, 2010
608e7d0
Handle http.* config variables pointing to files gracefully on Windows
dscho Jul 26, 2009
2f57b44
Fixed wrong path delimiter in exe finding
Sep 29, 2011
61c11b3
Windows: Always normalize paths to Windows-style
hvoigt Mar 22, 2012
cff5040
gitweb: Allow line number toggling with Javascript
dscho Sep 7, 2010
806ccd7
Gitweb: make line number toggling work for Firefox and Safari
dscho Sep 7, 2010
85312b1
Gitweb: add support for Alex Gorbatchev's SyntaxHighlighter in Javasc…
dscho Sep 25, 2011
02bb548
Only switch on the line number toggle when highlighting is activated
dscho Sep 25, 2011
90b1d17
gitweb (SyntaxHighlighter): interpret #l<line-number>
dscho Sep 26, 2011
13e7afc
git grep -O -i: if the pager is 'less', pass the '-i' option
dscho Feb 8, 2011
cf1e82f
grep -I: do not bother to read known-binary files
dscho Nov 8, 2010
002c82f
Git.pm: Use stream-like writing in cat_blob()
kongo2002 Feb 18, 2011
9eb8204
submodule: Use cat instead of echo to avoid DOS line-endings
sschuberth Apr 27, 2011
8d32395
submodule: Fix t7400, t7405, t7406 for msysGit
sschuberth Apr 27, 2011
33b93fe
am: Use cat instead of echo to avoid DOS line-endings (fixes t4150)
sschuberth Mar 23, 2012
490808c
Teach 'git pull' to handle --rebase=interactive
dscho Oct 22, 2011
2a293fb
Handle the branch.<name>.rebase value 'interactive'
dscho Oct 22, 2011
51d62b5
Teach 'git remote' that the config var branch.*.rebase can be 'intera…
dscho Feb 3, 2012
869e51f
Work around funny CR issue
dscho Apr 7, 2010
20a8f62
work around misdetection of stdin attached to a tty
hvoigt Jun 16, 2010
d902868
Handle new t1501 test case properly with MinGW
dscho Jan 8, 2011
2597546
MinGW: Skip test redirecting to fd 4
dscho Apr 1, 2011
03be6eb
t3102: Windows filesystems may not use a literal asterisk in filenames.
patthoyts Apr 26, 2011
4eb538a
t5407: Fix line-ending dependency in post-rewrite.args
patthoyts May 1, 2011
c6cc566
t030[02]: work around CR/LF issue
dscho Jan 5, 2012
6684904
t9350: point out that refs are not updated correctly
SRabbelier Jul 24, 2011
42ebb1c
t5800: clarify skip message
Mar 3, 2012
ee146da
Windows: make sure that merge-octopus only outputs LF line endings
dscho Apr 10, 2012
7fb7a13
Introduce and use test_cmp_text
dscho Apr 19, 2012
9e11561
Enable color output in Windows cmd.exe
kblees Jul 31, 2010
9f0b06d
Support Unicode console output on Windows
kblees Jul 31, 2010
fc54733
Detect console streams more reliably on Windows
kblees Jul 31, 2010
1c47632
Warn if the Windows console font doesn't support Unicode
kblees Jul 31, 2010
bacf1c5
Give commit message reencoding for output on MinGW a chance
dscho Aug 3, 2010
f938e44
Win32 dirent: remove unused dirent.d_ino member
kblees Jan 7, 2011
9fb92fd
Win32 dirent: remove unused dirent.d_reclen member
kblees Jan 7, 2011
c0dad5c
Win32 dirent: change FILENAME_MAX to MAX_PATH
kblees Jan 7, 2011
a2b77b8
Win32 dirent: clarify #include directives
kblees Jan 7, 2011
33f655b
Win32 dirent: improve dirent implementation
kblees Jan 7, 2011
7082a11
Win32: fix potential multi-threading issue
kblees Jan 7, 2011
6612fdb
Win32: move main macro to a function
kblees Jan 7, 2011
a0ef833
MinGW: disable CRT command line globbing
kblees Jan 7, 2011
de5e66a
Unicode console: fix font warning on Vista and Win7
kblees Aug 5, 2010
bb92234
Revert "Windows: teach getenv to do a case-sensitive search"
kblees Jan 14, 2012
46197a5
Revert "mingw.c: move definition of mingw_getenv down"
kblees Jan 14, 2012
10faf29
MSVC: fix winansi.c compile errors
kblees Oct 6, 2011
b53cdf8
Win32: Thread-safe windows console output
kblees Jan 14, 2012
a3cbbf7
Win32: add Unicode conversion functions
kblees Nov 25, 2011
370f92e
Win32: Unicode file name support (except dirent)
kblees Mar 15, 2012
641c3e8
Win32: Unicode file name support (dirent)
kblees Jan 14, 2012
a874304
Unicode file name support (gitk and git-gui)
kblees Feb 4, 2012
1ccc109
Win32: Unicode arguments (outgoing)
kblees Jan 16, 2011
5d7b34d
Win32: Unicode arguments (incoming)
kblees Jan 16, 2011
ad1bc12
Win32: sync Unicode console output and file system
kblees Nov 25, 2011
089b266
Win32: Unicode environment (outgoing)
kblees Jan 15, 2012
3cd7b74
Win32: Unicode environment (incoming)
kblees Apr 25, 2011
922a9af
MinGW: disable legacy encoding tests
kblees Aug 20, 2011
780cb6d
Win32: fix environment memory leaks
kblees Nov 25, 2011
4cfe819
Win32: unify environment case-sensitivity
kblees Jan 14, 2012
46d744a
Win32: simplify internal mingw_spawn* APIs
kblees Nov 25, 2011
78b5c89
Win32: move environment functions
kblees Jan 14, 2012
e94a6ce
Win32: unify environment function names
kblees Oct 5, 2011
6b0dfea
Win32: factor out environment block creation
kblees Jan 14, 2012
edd2d69
Win32: don't copy the environment twice when spawning child processes
kblees Jan 14, 2012
99fbe72
Win32: reduce environment array reallocations
kblees Jan 15, 2012
e3b01f8
Win32: use low-level memory allocation during initialization
kblees Mar 15, 2012
3d4dcb2
Win32: keep the environment sorted
kblees Jan 15, 2012
f95e910
Win32: patch Windows environment on startup
kblees Jan 15, 2012
3febb6c
Win32: fix detection of empty directories in is_dir_empty
kblees Mar 15, 2012
9acc96c
Win32: fix broken pipe detection
kblees Mar 1, 2012
fc88bf2
MSVC: link dynamically to the CRT
kblees Jan 7, 2011
1cec697
MSVC: fix poll-related macro redefines
kusma Nov 1, 2011
e57531f
MSVC: require pton and ntop emulation
kusma Nov 1, 2011
e3dfe01
fast-export: do not refer to non-existing marks
dscho Jul 23, 2011
6022a27
setup_revisions: remember whether a ref was positive or not
dscho Jul 23, 2011
a649ccd
fast-export: do not export negative refs
dscho Jul 23, 2011
70e5fe4
setup_revisions: remember whether a ref was positive or not
dscho Jul 23, 2011
9ab324b
t5800: test pushing a new branch with old content
SRabbelier Jul 15, 2011
6627c9d
t5800: point out that deleting branches does not work
SRabbelier Jul 15, 2011
24f4e9e
transport-helper: add trailing --
SRabbelier Aug 29, 2010
562a83a
remote-helper: check helper status after import/export
SRabbelier Jul 23, 2011
7d45dda
remote-testgit: factor out RemoteHelper class
SRabbelier Jul 23, 2011
c9e9d7a
git-remote-testgit: make local a function
SRabbelier Jul 24, 2011
8704756
git_remote_helpers: add fastimport library
SRabbelier Aug 22, 2010
4ef6c07
git-remote-hg: add hgimport, an hg-fast-import equivalent
SRabbelier Jul 24, 2011
a964b08
git-remote-hg: add GitHg, a helper class for converting hg commits to…
SRabbelier Jul 24, 2011
77541bb
git-remote-hg: add hgexport, an hg-fast-export equivalent
SRabbelier Jul 24, 2011
4051c85
git-remote-hg: add GitExporter/GitImporter/NonLocalGit
SRabbelier Jul 24, 2011
53960e3
remote-hg: adjust to hg 1.9
Mar 16, 2012
4ae51c1
git-remote-hg: add the helper
SRabbelier Jul 24, 2011
e9fbbfd
git-remote-hg: add tests
SRabbelier Jul 24, 2011
7401b69
remote-hg: Postel's law dictates we should handle Author<author@mail>
dscho Mar 29, 2012
2f00ed0
remote-hg: another case of Postel's law
dscho Apr 7, 2012
dc19109
remote-hg: handle another funny author line from http://scelenic.com/hg
dscho Apr 7, 2012
f38436e
remote-hg: do not interfer with hg's revs() method
dscho Apr 7, 2012
192c6f8
Always auto-gc after calling a fast-import transport
dscho Apr 9, 2012
5dfd97f
fast-export: report SHA-1 instead of gibberish when marks exist already
dscho Apr 9, 2012
c70b4d0
t5801: skip without hg
Mar 3, 2012
4c47fc8
fix build: compat/mingw.c:1236: error: conflicting types for 'mingw_e…
May 9, 2012
e479eb8
POSIX style 1/2
May 9, 2012
ad46386
POSIX style 2/2
May 9, 2012
988d7fc
Fix invalid call to dd(1)
dscho May 12, 2012
5e73633
teach add_submodule_odb() to look for alternates
hvoigt May 14, 2012
422f328
Merge branch 'rs/xdiff-lose-emit-func' into next
gitster May 14, 2012
759d5f4
Merge branch 'fc/git-complete-helper' into next
gitster May 14, 2012
b6bc67f
Merge branch 'master' into next
gitster May 14, 2012
4451dbf
Sleep 1 millisecond in poll() to avoid busy wait
theoleblond May 16, 2012
f3999e0
diff --no-index: reset temporary buffer lengths on directory iteration
bpowers May 16, 2012
176a335
diff --no-index: don't leak buffers in queue_diff
bpowers May 16, 2012
20e60f3
Merge pull request #7 from theoleblond/PollSleep
kusma May 16, 2012
df4b6f3
Sync with git-svn and l10n updates
gitster May 17, 2012
c51a351
archive: simplify refname handling
May 18, 2012
bf38245
archive-tar: keep const in checksum calculation
May 18, 2012
d0740ce
rev-parse doc: --git-dir does not always show a relative path
jonseymour May 18, 2012
9ef5b2b
Fix t3411.3 to actually rebase something
j6t May 18, 2012
b2c26bb
Merge branch 'bp/diff-no-index-strbuf-fix' into next
gitster May 18, 2012
2f17ac8
Merge branch 'hv/submodule-alt-odb' into next
gitster May 18, 2012
b7482fc
Merge branch 'js/rebase-i-p-test-fix' into next
gitster May 18, 2012
c16f1c7
Merge branch 'js/rev-parse-doc-fix' into next
gitster May 18, 2012
a8ca614
Merge branch 'rs/archive-tree-in-tip-simplify' into next
gitster May 18, 2012
9de4cc5
Start the merging-rebase to junio/next
dscho May 20, 2012
d4978e5
Make CFLAGS more strict
dscho Jan 12, 2009
57546db
Do not compile compat/**/*.c with -Wold-style-definition
dscho Jan 8, 2011
770ac2d
Makefile: Do not use OLD_ICONV on MINGW anymore
sschuberth Nov 23, 2011
4a089d3
Define NO_GETTEXT for Git for Windows
dscho Jan 5, 2012
5e059bf
core.hidedotfiles: hide '.git' dir by default
kusma Dec 16, 2009
ff5e20d
When initializing .git/, record the current setting of core.hideDotFiles
dscho Jan 9, 2010
1fcc35f
mingw: do not hide bare repositories
kusma Mar 18, 2010
5bb07cb
mingw: add tests for the hidden attribute on the git directory
patthoyts Mar 18, 2010
de3c2bd
bash-completion: don't add quoted space for ZSH (fix regression)
moy Jan 14, 2012
c14abf2
criss cross rename failure workaround
j6t Sep 16, 2009
edc7252
Revert "git-gui: set GIT_DIR and GIT_WORK_TREE after setup"
hvoigt Feb 18, 2010
c67e2b6
git am: ignore dirty submodules
dscho May 29, 2010
7a4c329
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
f7b7744
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
1218fc3
git-gui: fix encoding in git-gui file browser
kblees Jan 7, 2011
1b82600
gitk: fix file name encoding in diff hunk headers
kblees Jan 7, 2011
d2f5458
Work around the command line limit on Windows
dscho Aug 11, 2009
6e178a1
Fix another invocation of git from gitk with an overly long command-line
FauxFaux Jul 25, 2010
7e64d6e
Add a few more values for receive.denyCurrentBranch
dscho Feb 16, 2009
8871064
Let deny.currentBranch=updateInstead ignore submodules
dscho Oct 23, 2010
8ee6d7a
send-email: accept absolute path even on Windows
kusma Jul 27, 2009
cb10fa6
send-email: handle Windows paths for display just like we do for proc…
May 23, 2010
42cc132
Add a Windows-specific fallback to getenv("HOME");
dscho Jun 1, 2010
3fea0fb
Allow using UNC path for git repository
czawadka Jul 13, 2010
adace50
Make mingw_offset_1st_component() behave consistently for all paths.
sunshineco Jul 13, 2010
f436ff1
Handle http.* config variables pointing to files gracefully on Windows
dscho Jul 26, 2009
930bfa0
Fixed wrong path delimiter in exe finding
Sep 29, 2011
72b9b6b
Windows: Always normalize paths to Windows-style
hvoigt Mar 22, 2012
d4ec7d5
gitweb: Allow line number toggling with Javascript
dscho Sep 7, 2010
8fa47cd
Gitweb: make line number toggling work for Firefox and Safari
dscho Sep 7, 2010
4b9dce7
Gitweb: add support for Alex Gorbatchev's SyntaxHighlighter in Javasc…
dscho Sep 25, 2011
0416c10
Only switch on the line number toggle when highlighting is activated
dscho Sep 25, 2011
16f5c18
gitweb (SyntaxHighlighter): interpret #l<line-number>
dscho Sep 26, 2011
ff21500
git grep -O -i: if the pager is 'less', pass the '-i' option
dscho Feb 8, 2011
1ca9f8b
grep -I: do not bother to read known-binary files
dscho Nov 8, 2010
c7f6071
Git.pm: Use stream-like writing in cat_blob()
kongo2002 Feb 18, 2011
cabc537
submodule: Use cat instead of echo to avoid DOS line-endings
sschuberth Apr 27, 2011
248ec90
submodule: Fix t7400, t7405, t7406 for msysGit
sschuberth Apr 27, 2011
55c1273
am: Use cat instead of echo to avoid DOS line-endings (fixes t4150)
sschuberth Mar 23, 2012
337ce9e
Teach 'git pull' to handle --rebase=interactive
dscho Oct 22, 2011
314a2e3
Handle the branch.<name>.rebase value 'interactive'
dscho Oct 22, 2011
b8af509
Teach 'git remote' that the config var branch.*.rebase can be 'intera…
dscho Feb 3, 2012
f5f4b6d
Work around funny CR issue
dscho Apr 7, 2010
764e170
work around misdetection of stdin attached to a tty
hvoigt Jun 16, 2010
cd07fb3
Handle new t1501 test case properly with MinGW
dscho Jan 8, 2011
720a9f8
MinGW: Skip test redirecting to fd 4
dscho Apr 1, 2011
4cf42ad
t3102: Windows filesystems may not use a literal asterisk in filenames.
patthoyts Apr 26, 2011
98ac26c
t5407: Fix line-ending dependency in post-rewrite.args
patthoyts May 1, 2011
2b11505
t030[02]: work around CR/LF issue
dscho Jan 5, 2012
be872bd
t9350: point out that refs are not updated correctly
SRabbelier Jul 24, 2011
341d935
t5800: clarify skip message
Mar 3, 2012
c7ea24f
Windows: make sure that merge-octopus only outputs LF line endings
dscho Apr 10, 2012
8000975
Introduce and use test_cmp_text
dscho Apr 19, 2012
3ecc14d
Enable color output in Windows cmd.exe
kblees Jul 31, 2010
a3a4263
Support Unicode console output on Windows
kblees Jul 31, 2010
9654a6c
Detect console streams more reliably on Windows
kblees Jul 31, 2010
b030362
Warn if the Windows console font doesn't support Unicode
kblees Jul 31, 2010
338fbc3
Give commit message reencoding for output on MinGW a chance
dscho Aug 3, 2010
9c71dac
Win32 dirent: remove unused dirent.d_ino member
kblees Jan 7, 2011
ba40c6a
Win32 dirent: remove unused dirent.d_reclen member
kblees Jan 7, 2011
6036a57
Win32 dirent: change FILENAME_MAX to MAX_PATH
kblees Jan 7, 2011
21d1bb5
Win32 dirent: clarify #include directives
kblees Jan 7, 2011
5ece8ae
Win32 dirent: improve dirent implementation
kblees Jan 7, 2011
7084154
Win32: fix potential multi-threading issue
kblees Jan 7, 2011
b9ca648
Win32: move main macro to a function
kblees Jan 7, 2011
36867e2
MinGW: disable CRT command line globbing
kblees Jan 7, 2011
16582d5
Unicode console: fix font warning on Vista and Win7
kblees Aug 5, 2010
8c7c4e2
Revert "Windows: teach getenv to do a case-sensitive search"
kblees Jan 14, 2012
cbfcd85
Revert "mingw.c: move definition of mingw_getenv down"
kblees Jan 14, 2012
8f92d93
MSVC: fix winansi.c compile errors
kblees Oct 6, 2011
2dc93ce
Win32: Thread-safe windows console output
kblees Jan 14, 2012
3cd966b
Win32: add Unicode conversion functions
kblees Nov 25, 2011
7a05501
Win32: Unicode file name support (except dirent)
kblees Mar 15, 2012
e94d10f
Win32: Unicode file name support (dirent)
kblees Jan 14, 2012
a4f4d69
Unicode file name support (gitk and git-gui)
kblees Feb 4, 2012
3be3d2b
Win32: Unicode arguments (outgoing)
kblees Jan 16, 2011
f70d538
Win32: Unicode arguments (incoming)
kblees Jan 16, 2011
3e810df
Win32: sync Unicode console output and file system
kblees Nov 25, 2011
480a230
Win32: Unicode environment (outgoing)
kblees Jan 15, 2012
8f632bc
Win32: Unicode environment (incoming)
kblees Apr 25, 2011
da956e9
MinGW: disable legacy encoding tests
kblees Aug 20, 2011
866b5be
Win32: fix environment memory leaks
kblees Nov 25, 2011
abf166a
Win32: unify environment case-sensitivity
kblees Jan 14, 2012
d3a0384
Win32: simplify internal mingw_spawn* APIs
kblees Nov 25, 2011
e752da9
Win32: move environment functions
kblees Jan 14, 2012
1778c82
Win32: unify environment function names
kblees Oct 5, 2011
018241d
Win32: factor out environment block creation
kblees Jan 14, 2012
8cef62c
Win32: don't copy the environment twice when spawning child processes
kblees Jan 14, 2012
5a4fa34
Win32: reduce environment array reallocations
kblees Jan 15, 2012
b79c569
Win32: use low-level memory allocation during initialization
kblees Mar 15, 2012
9e51430
Win32: keep the environment sorted
kblees Jan 15, 2012
8218715
Win32: patch Windows environment on startup
kblees Jan 15, 2012
5e20249
Win32: fix detection of empty directories in is_dir_empty
kblees Mar 15, 2012
caa1996
Win32: fix broken pipe detection
kblees Mar 1, 2012
436099e
MSVC: link dynamically to the CRT
kblees Jan 7, 2011
886c4d4
MSVC: fix poll-related macro redefines
kusma Nov 1, 2011
d4360b4
MSVC: require pton and ntop emulation
kusma Nov 1, 2011
b4686c7
fast-export: do not refer to non-existing marks
dscho Jul 23, 2011
a04e017
setup_revisions: remember whether a ref was positive or not
dscho Jul 23, 2011
2c12815
fast-export: do not export negative refs
dscho Jul 23, 2011
e6060b2
setup_revisions: remember whether a ref was positive or not
dscho Jul 23, 2011
d859657
t5800: test pushing a new branch with old content
SRabbelier Jul 15, 2011
66f9305
t5800: point out that deleting branches does not work
SRabbelier Jul 15, 2011
debbbfe
transport-helper: add trailing --
SRabbelier Aug 29, 2010
d36a13d
remote-helper: check helper status after import/export
SRabbelier Jul 23, 2011
449df6b
remote-testgit: factor out RemoteHelper class
SRabbelier Jul 23, 2011
9f402f0
git-remote-testgit: make local a function
SRabbelier Jul 24, 2011
e7de4fa
git_remote_helpers: add fastimport library
SRabbelier Aug 22, 2010
0f0485c
git-remote-hg: add hgimport, an hg-fast-import equivalent
SRabbelier Jul 24, 2011
1753732
git-remote-hg: add GitHg, a helper class for converting hg commits to…
SRabbelier Jul 24, 2011
ab21e0e
git-remote-hg: add hgexport, an hg-fast-export equivalent
SRabbelier Jul 24, 2011
5d3d6d5
git-remote-hg: add GitExporter/GitImporter/NonLocalGit
SRabbelier Jul 24, 2011
dfb3fc5
remote-hg: adjust to hg 1.9
Mar 16, 2012
70fa2e8
git-remote-hg: add the helper
SRabbelier Jul 24, 2011
fa6a5a7
git-remote-hg: add tests
SRabbelier Jul 24, 2011
075d843
remote-hg: Postel's law dictates we should handle Author<author@mail>
dscho Mar 29, 2012
318ea03
remote-hg: another case of Postel's law
dscho Apr 7, 2012
f82fbd8
remote-hg: handle another funny author line from http://scelenic.com/hg
dscho Apr 7, 2012
3180372
remote-hg: do not interfer with hg's revs() method
dscho Apr 7, 2012
fac50cb
Always auto-gc after calling a fast-import transport
dscho Apr 9, 2012
53b6d96
fast-export: report SHA-1 instead of gibberish when marks exist already
dscho Apr 9, 2012
6bb8d90
t5801: skip without hg
Mar 3, 2012
fce52b4
t4012: Fix invalid call to dd(1)
dscho May 12, 2012
97c2c0d
fix build: compat/mingw.c:1236: error: conflicting types for 'mingw_e…
May 9, 2012
36a84d5
POSIX style 1/2
May 9, 2012
7cbd324
POSIX style 2/2
May 9, 2012
b15879c
Sleep 1 millisecond in poll() to avoid busy wait
theoleblond May 16, 2012
bd81699
Provide a Windows version resource for the git executables.
patthoyts May 22, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make mingw_offset_1st_component() behave consistently for all paths.
mingw_offset_1st_component() returns "foo" for inputs "/foo" and
"c:/foo", but inconsistently returns "/foo" for UNC input
"/machine/share/foo".  Fix it to return "foo" for all cases.

Reference: http://groups.google.com/group/msysgit/browse_thread/thread/c0af578549b5dda0

Signed-off-by: Eric Sunshine <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
sunshineco authored and dscho committed May 12, 2012
commit a6dfde5a1d4ca82aabc21bfe1f6126906ed60bdb
11 changes: 6 additions & 5 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,23 +1852,24 @@ const char *get_windows_home_directory(void)

int mingw_offset_1st_component(const char *path)
{
int offset = 0;
if (has_dos_drive_prefix(path))
return 2 + is_dir_sep(path[2]);
offset = 2;

/* unc paths */
if (is_dir_sep(path[0]) && is_dir_sep(path[1])) {
else if (is_dir_sep(path[0]) && is_dir_sep(path[1])) {

/* skip server name */
char *pos = strpbrk(path + 2, "\\/");
if (!pos)
return 0;
return 0; /* Error: malformed unc path */

do {
pos++;
} while (*pos && !is_dir_sep(*pos));

return pos - path;
offset = pos - path;
}

return is_dir_sep(path[0]);
return offset + is_dir_sep(path[offset]);
}