repo.or.cz
/
git
/
debian.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
avoid sprintf and strcpy with flex arrays
2015-10-05
Jeff King
avoid s
p
rintf and
strc
p
y with flex ar
r
ays
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
f
f
King
use
a
lloc_
r
ef ra
t
her than hand-all
o
cating "
s
tr
u
ct ref"
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Je
f
f King
color: ad
d
overflow checks for parsing colors
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff Kin
g
dr
o
p s
t
rcpy in favor of raw sha
1
_
t
o_hex
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jef
f
Kin
g
us
e
sha1_to_hex_r() instead of strcpy
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff Kin
g
dae
m
o
n
: use cl
d
->e
n
v_array
when
r
e-spawni
n
g
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Je
f
f K
i
ng
stat_tracking_info:
conve
r
t to argv_arr
a
y
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff K
i
ng
http-pu
s
h
:
u
se an
a
rgv_array for setup_revisions
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
fe
t
ch-pack: use argv_array for in
d
ex-
p
ack / unpack
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
eff
Ki
n
g
diagnose_in
v
alid_index
_
pat
h
:
use strbuf to
avoid str
c
p
y
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
wri
t
e_loose
_
ob
j
ect:
c
onv
e
rt to strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
remove_leadi
n
g_path
:
use a strbuf for internal st
o
r
a
ge
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Je
f
f King
enter_rep
o
:
convert fixed-
s
i
z
e buffers
to strbufs
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff
K
i
ng
m
erge-recursi
v
e: convert
m
allo
c
/ strcpy to strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
eff King
transpo
r
t
: use strbufs for status tab
l
e "qu
i
ckref
"
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff K
i
ng
ap
p
l
y
: convert ro
o
t string to strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
Jeff King
init:
use strbufs to st
o
re paths
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff
K
in
g
probe_utf8_pathname_composition: use internal strbu
f
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-10-05
J
e
ff
K
ing
p
r
ecompose_ut
f
8
:
drop unused var
i
able
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
sha1_get_pack_name: use
a
strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f
K
ing
http-walker: stor
e
u
rl in a strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
K
ing
ht
t
p-
p
ush:
u
s
e strbu
f
instead of fwrite_buffer
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
remo
t
e-e
x
t: simplify git
p
kt
-
line genera
t
io
n
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
upl
o
ad-a
r
chive: convert sp
r
i
n
tf
t
o strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Kin
g
resolve_ref:
u
se s
t
r
b
ufs
for in
t
ernal buffers
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
e
ff
K
ing
rea
d
_remot
e
s_f
i
le: simplify string han
d
l
i
n
g
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Kin
g
read_bra
n
che
s
_file: sim
p
lify string handl
i
n
g
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
King
ma
i
lmap: re
p
lace st
r
cpy
with
x
strdup
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
h
e
lp: drop prep
e
nd functio
n
in
f
avor of
x
str
f
mt
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Ki
n
g
ref-filter: drop
sprintf and st
r
cpy calls
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
e
ff Kin
g
use str
i
p_suffix an
d
xstrfmt to replace suffix
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
fetch:
replace static
buffer with xstrfmt
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
King
co
n
fig: use x
s
trfmt
in no
r
malize_value
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
Ki
n
g
re
p
lace triv
i
al mall
o
c + sprintf /
s
trcpy
c
a
l
ls with
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Ki
n
g
receive-pa
c
k:
c
onver
t
s
t
rncpy to xsnprintf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f Kin
g
http-push: rep
l
ace
strcat with xsnprint
f
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff King
add_pac
k
ed_g
i
t
:
c
onvert strcp
y
i
nto xsnprintf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f King
entry
.
c:
c
o
nvert strc
p
y to xsnprint
f
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
King
gre
p
: use xsnpr
i
n
tf to
format
failure
messag
e
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
e
ff King
comp
a
t/hstrerror: conver
t
s
p
rintf to snprintf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
stop_progress_
m
sg: convert s
p
rintf to xsnpri
n
tf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Ki
n
g
f
ind_short_
o
bject_file
n
ame: convert sprint
f
to
x
s
nprin
t
f
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff K
i
ng
use xsnprintf for generating git object
h
ead
e
rs
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
King
a
r
chi
v
e-
t
ar
:
u
s
e xs
n
pr
i
ntf for trivia
l
fo
r
matting
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
conver
t
t
r
ivial sprintf /
s
trcpy calls to xsnp
r
in
t
f
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff Ki
n
g
compat/ine
t
_
n
top
:
fix off-b
y
-
o
ne in ine
t
_ntop4
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
test-dump-cache-tree: avoid
overflow of c
a
che-tree
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jef
f
K
i
n
g
prog
r
e
s
s: sto
r
e throug
h
put display i
n
a
s
t
rbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
Ki
n
g
trace: u
s
e
strbuf for
q
u
ote_crn
l
output
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff
K
ing
m
a
i
l
spl
i
t:
m
ake PATH_MA
X
buffers dy
n
amic
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
fsck:
use strbuf to g
e
nerate alt
e
rnate director
i
es
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff King
ad
d
reentrant
v
aria
n
ts of sha1_to_hex and
find_uniq
u
e
_abbrev
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Kin
g
s
trb
u
f: mak
e
strbuf_complet
e
_line more generic
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Kin
g
add
git_path
_
buf he
l
per fu
n
ction
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
J
eff Ki
n
g
ad
d
xsnprintf helper func
t
io
n
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff K
i
ng
fsck: don't fsck
a
l
ternates
f
or
c
onnectivity-only check
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff Kin
g
a
rchive-
t
ar:
f
ix minor indentation vi
o
latio
n
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Je
f
f
K
i
ng
m
ailsplit:
f
ix FI
L
E* leak in split
_
maild
i
r
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-25
Jeff
King
show-branch: avoid
s
egfault wit
h
--reflog of unborn
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
Jeff K
i
n
g
show-
b
ra
n
ch:
u
s
e
a
s
trbuf for
r
eflog descriptions
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
Jef
f
King
read_i
n
f
o
_a
l
ternates: handle paths larger
t
ha
n
P
AT
H
_MAX
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
Je
f
f
King
n
o
tes: use a strb
u
f in add_non_note
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-04
Jeff
K
ing
verify_
a
bsent: allow
f
ilename
s
l
o
nger than PATH_MAX
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-03
Jeff
King
pack-protocol: c
l
ari
f
y
LF-handling in PKT-L
I
NE()
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-09-01
Jeff King
rerere
:
relea
s
e lockfile
in n
o
n-writin
g
f
u
nc
t
i
o
n
s
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-31
Jeff
K
ing
l
o
g
: diagnose
e
mpty HEAD
more clearly
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-24
Jeff King
rev-list: make
it
o
bvious that we do
n
o
t s
u
pport notes
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-24
J
e
ff King
config: silence
w
a
rnings for comm
a
nd
names w
i
th invalid
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-20
Jeff King
get_
u
r
l
match: avo
i
d usel
e
s
s
strbuf write
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-20
Jeff King
format_config: si
m
pl
i
fy buf
f
er hand
l
ing
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-20
J
e
ff King
format_c
o
nfig: don't init
s
trb
u
f
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-11
Jeff King
vr
e
portf: av
o
id intermediate b
u
ffe
r
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-11
J
eff King
vre
p
ortf: report to arbitrar
y
filehand
l
es
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff K
i
ng
me
m
oize comm
o
n git-path "constant" files
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff
K
ing
g
e
t_
r
epo_path:
r
efactor pat
h
-
allocation
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
f
ind_hook
:
keep
o
ur own s
t
a
t
ic
buffer
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
J
e
ff King
refs
.
c: r
e
move_e
m
p
ty_directories
c
an take a strbuf
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
refs
.
c: avoid git_p
a
th assignme
n
t
in lo
c
k_r
e
f_sha1_basic
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
J
e
ff
K
ing
r
e
f
s
.
c
: avoid
r
e
peated
git_pa
t
h calls
i
n rena
m
e_tmp_log
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff K
i
ng
refs
.
c: simplify str
b
ufs
in
r
eflog se
t
up and writing
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
path
.
c: d
r
op git_path_submo
d
u
l
e
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff
King
re
f
s
.
c
:
r
e
mov
e
extra git_path ca
l
ls
from re
a
d
_
loose_r
e
f
s
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
remote
.
c:
d
rop extraneou
s
local
varia
b
le
f
rom migrate_fil
e
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
pre
f
er
m
k
p
athdup to mkpath in assig
n
ment
s
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
prefer git_p
a
thdup to git
_
pa
t
h in some possibly-dangerous
.
.
.
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
add
_
to_al
t
ernates_file: don't add duplicate en
t
r
ies
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff
K
ing
t5700: modernize style
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
cache
.
h: complete set of gi
t
_path_sub
m
odule
h
elpers
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
cache
.
h: clarify docu
m
entati
o
n f
o
r git_path, e
t
al
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
clon
e
: use com
p
uted length
i
n guess_di
r
_n
a
me
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-10
Jeff King
c
l
one: add tes
t
s
f
or outpu
t
di
r
e
c
tory
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-07
Jeff King
te
s
t-lib: disa
b
l
e trace wh
e
n
test is not v
e
r
bose
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-07
J
eff Ki
n
g
test-
l
ib:
t
urn off "-x" tracing during chain-lint
c
heck
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-08-07
J
e
ff King
r
e
f
s: support negat
i
ve transfer
.
hide
R
ef
s
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-07-28
Jeff
Ki
n
g
docs/config
.
txt: r
e
o
rder hideRefs
c
o
nfi
g
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-07-21
Jeff King
strbuf: make strbu
f
_ad
d
fti
m
e
more robust
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-07-08
J
e
f
f
King
ch
e
c
k
_and
_
freshen
_
file:
fix
r
eversed
s
uccess-check
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-07-01
Jef
f
Kin
g
rev-list: dis
a
ble
--
u
se-bit
m
ap-inde
x
when
p
run
i
ng
c
ommits
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-06-29
Jeff King
introduce "format
"
date-mode
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
2015-06-29
Jeff King
convert "en
u
m date_mode" into a
struct
Signed-off-by:
Jeff King
<peff@peff.net>
commit
|
commitdiff
|
tree
next