repo.or.cz
/
git
/
mingw.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
use strbuf_complete to conditionally append slash
2015-10-05
Jef
f
King
use st
r
buf_com
p
let
e
t
o conditi
o
nally append s
l
ash
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
f
f King
f
s
c
k
: use for_each
_
loose_
f
ile_in_objdir
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
Makefile: drop D_I
N
O_IN_DIRENT buil
d
knob
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Je
f
f King
fsck: drop inode-sort
i
ng co
d
e
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
convert strncpy t
o
memcpy
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
no
t
es: document length of fano
u
t path with a
c
ons
t
a
n
t
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
eff Ki
n
g
color: ad
d
color_set helper for cop
y
i
ng raw
c
o
lors
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
p
r
e
fer
m
em
c
p
y to st
r
cpy
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Je
f
f King
help:
c
lean up kfmc
l
ient munging
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jef
f
King
receive-pack:
s
i
mp
l
ify k
e
ep_arg computation
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
avoid sprintf
a
nd strcpy with flex arrays
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
f
f
King
use alloc_ref rather th
a
n hand
-
allocating "struct r
e
f
"
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jef
f
K
ing
c
olor: ad
d
overflow
checks for pa
r
sing co
l
ors
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Je
f
f King
drop strcpy in
f
a
v
or of
r
a
w sha1_to_hex
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff
Ki
n
g
use
sha1_to
_
hex_r()
instea
d
of str
c
py
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
f
f
Kin
g
daem
o
n:
use cld->env_a
r
ray when re-spaw
n
i
n
g
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff King
stat_tracki
n
g
_info: convert
t
o argv_arra
y
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff K
i
ng
ht
t
p-
p
ush: u
s
e an a
r
gv_array for setu
p
_revisions
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
eff King
f
e
tch-pack: use argv_array for index-pack / unp
a
c
k
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jef
f
King
diagnose_invalid_ind
e
x
_
path:
use st
r
b
uf
to avoid strc
p
y
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
eff King
wr
i
te
_
l
oose_
o
bject: convert to strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
remove_leading_pat
h
: u
s
e a strbuf fo
r
internal sto
r
a
g
e
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff Kin
g
enter_repo: convert fixed-size buffers to
s
trbufs
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff King
merge-recursive: conve
r
t malloc
/
s
tr
c
py to strb
u
f
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff King
tran
s
port: use strbufs for stat
u
s
t
a
ble "qu
i
c
kref
"
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff Kin
g
app
l
y:
convert
root string to str
b
uf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff K
i
ng
init: use
s
trbufs
t
o s
t
ore
pa
t
hs
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff King
probe
_
u
t
f
8_pathname_composition:
use in
t
ernal s
t
rbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff Kin
g
precompo
s
e_utf8: drop unused var
i
able
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
e
ff King
sh
a
1_get_pack_name
:
use a strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
e
f
f
Kin
g
http
-
walker: store url
in
a
s
t
rbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
K
ing
http-push: use strbuf
i
n
s
tead of fwrit
e
_buffer
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
remot
e
-e
x
t: simplify git pkt-line
g
eneration
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
K
ing
up
l
o
ad-
a
rchive: convert
sprintf to strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
resolve_ref:
u
se strbufs for inter
n
al buffers
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
K
i
ng
re
a
d_remotes_file: simplify
s
tring handling
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
re
a
d_branches_fil
e
: s
i
m
pli
f
y string hand
l
ing
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f Kin
g
m
a
ilmap: replac
e
strcpy with x
s
trdup
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
K
ing
help: drop prepend
function
in favor
o
f
xstrfmt
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Kin
g
ref-
f
i
l
t
e
r
: dro
p
sprintf an
d
strcpy calls
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff K
i
ng
use strip_s
u
ffix
and xstr
f
mt to
r
eplac
e
s
uff
i
x
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff King
fetch: replace static
b
uffer with xstrf
m
t
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Ki
n
g
config: use
x
s
t
r
f
mt
i
n
n
ormalize_
v
a
lue
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
replace triv
i
a
l mall
o
c
+ sprintf /
s
t
rcpy calls with
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
receiv
e
-
pack: convert strncpy
t
o
x
s
npr
i
ntf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff King
http-push: replac
e
st
r
cat with
xsnprintf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
add_packed_git: convert s
t
rcpy into xs
n
p
r
intf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
entry
.
c: c
o
nvert strcpy to xsnprintf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff K
i
n
g
gre
p
: use xsnprintf
to for
m
at failure message
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
com
p
at/hstrer
r
or: co
n
vert sp
r
int
f
to
s
npr
i
ntf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f
King
s
top_progress_msg: con
v
er
t
sprintf to x
s
nprintf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
King
find_sh
o
rt_object_filena
m
e: convert
s
p
rin
t
f to xsnprintf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
e
ff
King
u
se
x
s
n
printf
f
or generatin
g
git
o
b
ject headers
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
a
rchive-tar: use xsnprintf
f
or trivial fo
r
mat
t
in
g
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
c
onvert trivial sprintf / strcpy calls to xs
n
printf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f King
compat/i
n
et_nt
o
p
:
fix o
f
f-by-
o
ne in inet_ntop4
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f K
i
ng
test-dump-cac
h
e-t
r
e
e
:
avoid ove
r
flow of cache-tree
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
ef
f
King
progress
:
sto
r
e throughput display in a strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
K
i
ng
trace: use strbuf for quote_crn
l
ou
t
put
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
e
ff K
i
ng
mailsplit
:
m
ake PATH_MAX bu
f
f
e
rs
d
y
namic
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
fsc
k
: use strbu
f
to
generate alternate
d
irectori
e
s
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Ki
n
g
add
r
eentrant
var
i
ants of sha1_
t
o_hex and find_unique_abbrev
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff King
strbuf: m
a
ke strbuf_complete_line more ge
n
eri
c
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
ef
f
Kin
g
add
g
it_path_buf he
l
p
er function
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
Ki
n
g
ad
d
x
snpr
i
n
tf helper
function
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
fsck: don
'
t
f
sck alternates
f
o
r conne
c
tivity-only
c
hec
k
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
Kin
g
arch
i
ve-t
a
r
: fix
minor ind
e
ntati
o
n violation
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff K
i
n
g
mails
p
lit: fix FILE* l
e
ak in split_ma
i
ldir
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff
King
show-branch: avoid segfault with --reflo
g
of unborn
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
J
e
ff King
s
h
ow-branch: us
e
a
strbuf for reflog de
s
criptio
n
s
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
Jeff King
rea
d
_info
_
alternates: handle p
a
ths larger than
PATH_MAX
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
J
e
ff Ki
n
g
no
t
es: us
e
a s
t
r
b
uf in
add_non_not
e
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
J
eff King
verify_absent: allow file
n
ames lo
n
ger than PATH
_
M
A
X
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-03
Jef
f
King
pac
k
-
p
r
o
tocol: clar
i
fy LF-
h
andling in PKT-LINE(
)
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-01
J
e
ff King
rerer
e
: release lockfile in n
o
n-writing funct
i
ons
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-31
J
eff K
i
ng
log: diagnose em
p
t
y
HEAD more clearly
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-24
Je
f
f King
rev-
l
i
st: make it
obvious t
h
a
t
we d
o
not support notes
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-24
J
e
ff King
c
o
nfig:
silence warnings for command
name
s
wit
h
in
v
alid
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-20
Jeff Ki
n
g
get
_
url
m
atch: avoi
d
useless strbuf wr
i
t
e
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-20
Je
f
f K
i
n
g
fo
r
mat_config:
simplify buf
f
er han
d
ling
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-20
J
eff King
f
o
rmat_con
f
ig
:
don't ini
t
st
r
buf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-11
Jeff King
vreportf: avoid in
t
erme
d
iate buffer
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-11
Je
f
f King
vreportf:
r
e
p
ort to arbitrary
filehandles
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff
King
m
e
moize common git-
p
ath "
c
onsta
n
t" files
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff K
i
n
g
get_repo_p
a
th: refac
t
or
p
ath-a
l
loc
a
t
ion
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
J
eff Ki
n
g
find_hoo
k
:
k
eep our own
stati
c
buffer
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
refs
.
c
: remove_empty_directo
r
ies c
a
n
take a strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jef
f
Ki
n
g
refs
.
c: avoid git_path assignment i
n
l
ock_ref_sha1_b
a
s
i
c
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff
Kin
g
r
efs
.
c: avoid
r
e
peated git_path calls i
n
re
n
ame_t
m
p_log
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jef
f
King
ref
s
.
c: simpl
i
fy strbufs in reflo
g
set
u
p and w
r
iting
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
path
.
c: drop git_p
a
th_submodule
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff Kin
g
refs
.
c: remove ex
t
ra git
_
path calls f
r
om read_loose_refs
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff K
i
n
g
rem
o
te
.
c: d
r
op extra
n
eous loc
a
l variable from m
i
gr
a
te_file
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff Ki
n
g
prefer
m
k
p
athdu
p
t
o
mkpath in a
s
si
g
n
ments
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
p
r
efer g
i
t_pathdup
to git_path
i
n
so
m
e p
o
ssibly
-
dangerous
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
J
e
f
f King
add_to_alternates_file: don't
a
dd duplicate entries
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff
King
t
5
700: m
o
d
e
r
nize style
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff Kin
g
cache
.
h: c
o
mpl
e
te set
o
f gi
t
_
path_submodule helpers
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Je
f
f King
cac
h
e
.
h:
clarify
do
c
u
m
e
n
ta
t
ion
f
o
r git
_
path, et al
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
c
l
one: use computed length in gue
s
s_dir_n
a
me
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
next