1
0
mirror of https://github.com/git/git.git synced 2024-10-21 21:08:55 +02:00
git/compat
Junio C Hamano c01499ef69 C: have space around && and || operators
Correct all hits from

    git grep -e '\(&&\|||\)[^ ]' -e '[^	 ]\(&&\|||\)' -- '*.c'

i.e. && or || operators that are followed by anything but a SP,
or that follow something other than a SP or a HT, so that these
operators have a SP around it when necessary.

We usually refrain from making this kind of a tree-wide change in
order to avoid unnecessary conflicts with other "real work" patches,
but in this case, the end result does not have a potentially
cumbersome tree-wide impact, while this is a tree-wide cleanup.

Fixes to compat/regex/regcomp.c and xdiff/xemit.c are to replace a
HT immediately after && with a SP.

This is based on Felipe's patch to bultin/symbolic-ref.c; I did all
the finding out what other files in the whole tree need to be fixed
and did the fix and also the log message while reviewing that single
liner, so any screw-ups in this version are mine.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-10-16 10:26:39 -07:00
..
fnmatch
nedmalloc Windows: do not redefine _WIN32_WINNT 2013-09-11 14:50:19 -07:00
poll Windows: do not redefine _WIN32_WINNT 2013-09-11 14:50:19 -07:00
regex C: have space around && and || operators 2013-10-16 10:26:39 -07:00
vcbuild
win32
apple-common-crypto.h imap-send: use Apple's Security framework for base64 encoding 2013-07-30 08:53:24 -07:00
basename.c
bswap.h
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c MinGW: Fix stat definitions to work with MinGW runtime version 4.0 2013-09-11 11:11:06 -07:00
mingw.h Merge branch 'kb/msvc-compile' 2013-09-24 23:31:58 -07:00
mkdir.c
mkdtemp.c
mmap.c
msvc.c
msvc.h MSVC: fix stat definition hell 2013-09-11 11:08:52 -07:00
obstack.c
obstack.h
pread.c
precompose_utf8.c Set core.precomposeunicode to true on e.g. HFS+ 2013-08-27 07:41:32 -07:00
precompose_utf8.h
qsort.c
setenv.c
snprintf.c
strcasestr.c
strlcpy.c
strtoimax.c
strtoumax.c
terminal.c
terminal.h
unsetenv.c
win32.h
win32mmap.c
winansi.c