repo.or.cz
/
git.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
use file_exists() to check if a file exists in the worktree
2015-05-20
René Scharfe
use f
i
le_exists() t
o
check if a file e
x
ists
i
n
th
e
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-03-10
René Scharfe
u
se isx
d
igit(
)
fo
r
checking if a cha
r
acter is a
h
exade
c
im
a
l
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-03-10
René Scharfe
daemo
n
:
d
eglobalize hostname inf
o
rmation
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-03-10
René Scharfe
daemon: us
e
strbuf f
o
r
h
os
t
n
a
m
e
info
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-03-05
René Schar
f
e
zlib: initialize git_
z
s
tream
in
git
_
defl
a
te_init{,_
g
zi
p
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-03-05
Re
n
é Scharfe
ar
c
hive-zip: m
a
r
k
t
e
xt files in archives
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-02-22
René
S
charfe
sha1
_
n
ame:
u
se strlcpy() to co
p
y strings
Signed-of-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-02-22
Re
n
é
Scharfe
prett
y
:
u
se starts_with() to chec
k
for a prefix
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-02-22
René Scharfe
for-e
a
c
h-ref
:
use skip_prefix() to avoid dupl
i
cate
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-02-22
R
ené Scharfe
connect: use
strcmp() f
o
r
s
trin
g
compa
r
ison
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-02-17
René Sc
h
ar
f
e
daemon: use callbac
k
t
o build inte
r
po
l
ated path
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2015-02-17
R
e
né
S
charfe
d
a
emon: look
u
p
c
l
i
ent-s
u
pplied
ho
s
tname lazily
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-12-29
René Scharfe
r
e
f
s
:
plug strbuf leak in
lock_ref_sha
1
_bas
i
c(
)
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-12-29
René
S
char
f
e
t
r
anspo
r
t:
simpli
f
y dupl
i
c
ating
a
s
ubstrin
g
in transport_get
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-12-29
R
ené Scharfe
m
erge: relea
s
e
s
trb
u
f after use in suggest_conflicts()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-12-29
René Sch
a
rf
e
commit-tree:
s
i
m
p
lif
y
parsing
o
f
o
p
t
ion -S usi
n
g skip_prefix()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-12-12
R
e
né Sch
a
rfe
u
s
e strbuf_compl
e
te_
l
ine() for adding a newline
if
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-11-17
Ren
é
Sc
h
a
r
fe
use labs() for vari
a
bles o
f
type l
o
ng instead of abs()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-11-17
René S
c
ha
r
fe
use l
a
b
s
(
) f
o
r variables of
t
ype long
instead
o
f abs()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-11-10
R
e
n
é
Scharf
e
run-command: u
s
e
v
o
id to declare that func
t
i
ons ta
k
e
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-11-10
R
ené S
c
ha
r
fe
use args
m
e
mber of struct child_process
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-11-10
René S
c
harfe
trailer: use C
H
ILD_PROCESS_INIT in appl
y
_co
m
m
and()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-28
René Sch
a
rfe
a
pi-run-command:
add missing list item marker
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-28
René Sch
a
rfe
use child_proc
e
ss_init() to initi
a
lize st
r
uct c
h
ild_process
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-28
René Scharfe
re
c
eiv
e
-pack: a
v
oid m
i
n
or leak in
c
a
se start_async
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-28
René S
c
harfe
grep: add color
.
gr
e
p
.
m
a
tchc
o
nt
e
xt a
n
d color
.
gre
p
.
matchsel
e
cted
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-19
René Schar
f
e
use en
v
_array
member o
f
struct c
h
ild_p
r
o
c
ess
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-19
René Schar
f
e
run-command: add env_
a
rray, an opti
o
nal argv_a
r
ray
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-13
René
S
char
f
e
rec
e
ive-pack: plug
minor memory l
e
ak in unpack()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-07
R
en
é
Scharfe
use
s
k
ip_prefix() to
avoid m
o
re
magic numbers
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-07
Re
n
é Scha
r
f
e
mailsplit: remove unnecess
a
ry unlink(2)
c
a
ll
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-07
René Scharfe
b
undle: plug minor memor
y
leak
in is_t
a
g_in_date_ra
n
ge()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-01
Re
n
é
Scharfe
daemon: re
m
ove write-only variable
max
f
d
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-01
René Scharfe
daemon:
fi
x
error
m
essage after b
i
nd()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-01
R
e
n
é Scha
r
fe
daemon: handle ge
t
hos
t
b
yname
(
)
error
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-01
René Schar
f
e
sha1-lookup: hand
l
e duplic
a
t
e
s in sha
1
_pos()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-10-01
René
Sch
a
rfe
s
ha1-array: add test-sha1-arra
y
an
d
ba
s
ic tests
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-30
R
ené Scharfe
t0090:
avoid passing empt
y
strin
g
to pr
i
ntf %d
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-22
Re
n
é Scharfe
remote: simpli
f
y
match_name_
w
i
t
h_pattern()
u
sing strbuf
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-22
René Sc
h
arfe
graph: simplify graph_padding_line
(
)
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-18
R
ené Scharfe
use REALLOC_
A
RRAY for
c
han
g
in
g
the
allocation size
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-18
René Scharfe
add mac
r
o REALLOC_ARRAY
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-15
René Schar
f
e
rep
a
ck: call prune_packed_objects() a
n
d update_s
e
rver_info
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-08
René
S
c
harfe
s
t
r
b
uf: use strbu
f
_addchars() for adding a ch
a
r multiple
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-08
Ren
é
Schar
f
e
strbuf: export strbuf
_
a
d
d
chars()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-08
R
e
né Scha
r
fe
t
rac
e
:
corr
e
ct trace_strb
u
f
(
) parameter type for !HA
V
E_VARIA
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-02
René Scharfe
imap-se
n
d: simpli
f
y v_issue_imap_cm
d
(
)
a
nd get_c
m
d_re
s
ult
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-02
René S
c
h
a
r
fe
merge-
t
r
e
e: remove unused
df_c
o
nflict
arguments
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-02
René Sc
h
arfe
http-wal
k
er:
simpl
i
fy
p
r
o
cess_alternates_respon
s
e(
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-02
Re
n
é Scharfe
config: simplify git_
c
onfig
_
inc
l
u
d
e()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-02
René Scharfe
pack-
w
rite: si
m
plif
y
index
_
p
ack_lo
c
kfile usi
n
g
s
kip_prefix
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-09-02
René
Scha
r
f
e
conn
e
ct: simp
l
if
y
check_ref() using
sk
i
p_prefix()
and
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
René Scharfe
use strbuf_add_absolute_p
a
t
h
(
) t
o
a
dd
a
bsolute paths
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
Ren
é
Sc
h
arf
e
a
bspath: convert abs
o
lute_pa
t
h() t
o
s
t
rbuf
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
René Scharfe
use xgetcwd()
to set $GIT_DIR
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
R
e
né Scharfe
use x
g
etcwd() to get the current dir
e
ctory or die
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
René Sc
h
a
rfe
wrapper: add xgetcwd()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
R
ené Scharf
e
abspa
t
h: conver
t
real_path_inter
n
al() to strbuf
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
René Scharfe
abspath: use strbuf_getcwd
(
) t
o
remember original working
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-26
René Sch
a
rfe
se
t
up:
co
n
vert setup_g
i
t_direc
t
or
y
_gently_1 et al
.
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-25
René Sch
a
rfe
w
alke
r
: av
o
i
d
quadratic li
s
t
i
n
se
r
tion in mark_complete
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-25
R
e
né Scharfe
sha1_name: avoi
d
quadratic list insertion
in
ha
n
dle_
o
ne_ref
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-20
René Sch
a
r
f
e
r
u
n-c
o
mmand: inline prepare_run
_
comma
n
d
_
v_opt
(
)
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-20
Ren
é
Scharfe
run-
c
ommand: call ru
n
_comman
d
_v_opt_cd_env() instead
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-20
R
e
n
é
S
c
har
f
e
ru
n
-
c
o
mmand
:
introd
u
ce
c
hild_process_i
n
it()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-20
René Sch
a
rfe
r
un-comma
n
d: intr
o
d
uce CHILD_PROCE
S
S_INIT
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-18
René Scharfe
turn path macros
i
nto
i
nline funct
i
on
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-18
René S
c
harfe
c
l
ean: use f(void) instead o
f
f
(
) to
d
eclare a
p
o
i
nter
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-08-10
René Scharfe
re
a
d-c
a
che: check for
l
e
a
ding symlink
s
w
h
en refreshing
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-28
R
e
né Scharfe
init:
avoi
d
superfluous
r
eal_path
(
) calls
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-28
René
S
cha
r
fe
uni
x
-
s
ockets:
use
strb
u
f
_
g
etcwd()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-28
René Sc
h
ar
f
e
strbuf: a
d
d strbuf_getcwd()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-21
René Sc
h
arfe
use
x
memdu
p
z
() to al
l
oca
t
e
c
opies of st
r
i
n
gs
g
i
v
e
n
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-21
René Scharfe
use
x
calloc() to allocate zero-initialized memory
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-21
René Scharfe
uni
x
-socke
t
: remov
e
s
tale socket b
e
fore
c
alling
chdir(
)
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-18
René
S
charfe
r
emote-te
s
tsvn:
u
s
e inter
n
al ar
g
v_a
r
ray of
s
truct child_pr
o
c
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-18
René Sc
h
arfe
b
u
n
d
le: use internal argv_array o
f
st
r
u
c
t child_process
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-18
Re
n
é
S
c
h
arfe
fa
s
t-import:
u
s
e ha
s
h
cmp() for SHA1 hash compar
i
so
n
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-18
René Scharfe
transport
:
si
m
p
lify fetch_o
b
js_
v
ia_rsy
n
c() using arg
v
_a
r
ray
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-17
René Sch
a
rfe
run
-
c
o
m
m
and:
u
s
e
i
nte
r
nal argv_array of
s
truc
t
child_proc
e
ss
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-17
René Scharfe
use
c
ommi
t
_
li
s
t_count() to count the members of commit_l
i
s
ts
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-17
René Schar
f
e
strb
u
f: use
str
b
u
f_add
s
t
r
() for adding C strin
g
s
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-16
René Scha
r
fe
an
n
otate: use argv_array
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-10
René Scharfe
fsck: s
i
m
plify fsck_comm
i
t_bu
f
fer()
b
y u
s
in
g
commit_list_c
o
unt()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-10
R
e
né Scharfe
commit:
use commit_list_a
p
pe
n
d
()
instead of d
u
p
lica
t
ing
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-10
R
e
n
é
Sch
a
rfe
me
r
ge: simp
l
ify
me
r
ge_t
r
ivial() by using
c
ommit
_
l
ist_appe
n
d
(
)
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-10
René
Scharfe
us
e
strbuf_addch for
addin
g
single
c
h
aracter
s
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-10
R
ené S
c
harfe
use
strbuf_addbuf for a
d
ding strbuf
s
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-08
Ren
é
Scharfe
line-log: use commit_list_
a
p
pend
(
) instead of
duplicating
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-08
René Scha
r
fe
di
f
f-tree: call free_co
m
mit_list
(
) i
n
stead of duplicating
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-07
René Scha
r
f
e
t5000, t5003: simp
l
ify commit
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-07-01
R
e
né Sc
h
arfe
sha1_file: avoid
overrunning alter
n
at
e
ob
j
ect base
.
.
.
commit
|
commitdiff
|
tree
2014-06-30
René Scharfe
sha1_file
:
replace P
A
TH_MAX bu
f
fer with strbuf
in
p
repare_pa
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-06-30
R
e
né Sch
a
r
fe
wt-status: simpl
i
fy
buil
d
ing of
summary limit
a
r
gume
n
t
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-06-30
René Scharfe
wt-status: use
argv_array for environ
m
ent
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-06-13
René Sch
a
rfe
b
lam
e
: sim
p
li
f
y
p
r
e
pa
r
e_lines()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-06-13
R
e
né Sch
a
rfe
blame: factor ou
t
get_next
_
l
in
e
()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-06-09
R
ené Scharfe
Use st
a
rts_wi
t
h() for
C str
i
ngs instea
d
of
memcmp()
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-06-02
Re
n
é Scharfe
p
ack-o
b
j
ects: use free(
)
+xcalloc() instead of xr
e
a
lloc
.
.
.
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
2014-06-02
René
S
cha
r
fe
mail
i
nfo: use str
c
mp()
f
or
s
tring comparison
Signed-off-by: Rene Scharfe <
l.s.r@web.de
>
commit
|
commitdiff
|
tree
next