Skip to content

Commit 10dd3b2

Browse files
committed
Merge branch 'maint-1.7.7' into maint
* maint-1.7.7: am: don't persist keepcr flag mingw: give waitpid the correct signature git symbolic-ref: documentation fix
2 parents b1af963 + 7919704 commit 10dd3b2

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

Documentation/git-symbolic-ref.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ In the past, `.git/HEAD` was a symbolic link pointing at
4343
`refs/heads/master`. When we wanted to switch to another branch,
4444
we did `ln -sf refs/heads/newbranch .git/HEAD`, and when we wanted
4545
to find out which branch we are on, we did `readlink .git/HEAD`.
46-
This was fine, and internally that is what still happens by
47-
default, but on platforms that do not have working symlinks,
48-
or that do not have the `readlink(1)` command, this was a bit
49-
cumbersome. On some platforms, `ln -sf` does not even work as
50-
advertised (horrors). Therefore symbolic links are now deprecated
51-
and symbolic refs are used by default.
46+
But symbolic links are not entirely portable, so they are now
47+
deprecated and symbolic refs (as described above) are used by
48+
default.
5249

5350
'git symbolic-ref' will exit with status 0 if the contents of the
5451
symbolic ref were printed correctly, with status 1 if the requested

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ char *getpass(const char *prompt)
17121712
return strbuf_detach(&buf, NULL);
17131713
}
17141714

1715-
pid_t waitpid(pid_t pid, int *status, unsigned options)
1715+
pid_t waitpid(pid_t pid, int *status, int options)
17161716
{
17171717
HANDLE h = OpenProcess(SYNCHRONIZE | PROCESS_QUERY_INFORMATION,
17181718
FALSE, pid);

compat/mingw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static inline int mingw_mkdir(const char *path, int mode)
120120
#define mkdir mingw_mkdir
121121

122122
#define WNOHANG 1
123-
pid_t waitpid(pid_t pid, int *status, unsigned options);
123+
pid_t waitpid(pid_t pid, int *status, int options);
124124

125125
#define kill mingw_kill
126126
int mingw_kill(pid_t pid, int sig);

git-am.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,6 @@ else
530530
echo "$sign" >"$dotest/sign"
531531
echo "$utf8" >"$dotest/utf8"
532532
echo "$keep" >"$dotest/keep"
533-
echo "$keepcr" >"$dotest/keepcr"
534533
echo "$scissors" >"$dotest/scissors"
535534
echo "$no_inbody_headers" >"$dotest/no_inbody_headers"
536535
echo "$GIT_QUIET" >"$dotest/quiet"
@@ -576,12 +575,6 @@ if test "$(cat "$dotest/keep")" = t
576575
then
577576
keep=-k
578577
fi
579-
case "$(cat "$dotest/keepcr")" in
580-
t)
581-
keepcr=--keep-cr ;;
582-
f)
583-
keepcr=--no-keep-cr ;;
584-
esac
585578
case "$(cat "$dotest/scissors")" in
586579
t)
587580
scissors=--scissors ;;

0 commit comments

Comments
 (0)