Commits
- Commit:
2cf2727869f4962f1624068c72a409a05b7b5fc7
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gitconfig.c: look for comments after trimming the start of the line
This fixes the (harmless) errors raised by gitconfig.c on indented
comment lines and adds a test case for it. Reported by James Cook,
thanks!
ok stsp@
- Commit:
5fab8a45de8c63893f21c921fea101ddcc8750c9
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
log gitconfig.c parser errors to stderr, not stdout. ok stsp@
- Commit:
40d0d6a4093ece4bee8d00d9d5c375de27f3792d
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gitconfig.c: fix read/write out of bounds
conf_parse_line advances the `line' pointer without decrementing the
line size `sz'. This makes the parsing code mistakingly reading from
the next line (`line' is just a pointer in a bigger buffer that holds
the whole file) and may mangle it by writing NUL bytes in it.
Add also a new regress case to trigger this case.
Reported by falsifian on IRC, thanks!
ok stsp@
- Commit:
b6ac0d3606b6c6348cf2f250fc3b37189b023031
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gitconfig.c: fix printing of debugging logs
all the othe LOG_DBG calls assume \n is implicit (like with err(3)), so
remove the only explicit \n and make log_debug printing a newline too.
- Commit:
68ce777164047c16f461f8e53b9a6d4aa2e26efe
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gitconfig.c: unbreak build when GITCONFIG_DEBUG is defined
- Commit:
1ff8274840d12a105064c246d5602b0e93957be5
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
convert two files to utf8
ok stsp
- Commit:
fcbb06bf6925b542428b937afc9f37446058e748
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
replace malloc+memcpy with strndup. no functional change intended
ok stsp@
- Commit:
8b925c6ccd3968917253ea191906a1710c40ed2d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add back sys/queue.h
Now that the handling of including sys/queue.h is better, there's no
need to remove those lines from the source. Copy the location of those
original sys/queue.h lines from upstream at the same line number, so as
to avoid any conflicts in the future.
- Commit:
49d691e8618234a8b0f8d05a1df882c31603644e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam@smoothwall.net>
- Date:
mark some function parameters as 'const', as they should be; patch by Omar Polo
- Commit:
dd038bc6ec835ad3fd3c0b5303b8af9ad506c8cc
- From:
- Thomas Adam <thomas@xteddy.org>
- Via:
- Thomas Adam <thomas.adam@smoothwall.net>
- Date:
portable: initial Linux compilation
This commit modifies the GoT main branch to be able to compile it under
linux.
- Commit:
300ea75439b394ec49d0c1fa52997bafe208fa58
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
silence a printf in our gitconfig parser; this code shouldn't print to stdout
- Commit:
16aeacf7088dcd3cd5e654af46a3015cecf41426
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; from emaste@freebsd
- Commit:
83310ac93c89fc777a006097b06ef4f4df3a5396
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix bug where duplicates were returned from got_gitconfig_get_section_list()
- Commit:
cd95becd3d0ee4fb578daf570177c3550cb19e08
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
parse remotes from gitconfig
- Commit:
aba9c984d1420b77b23320520e70b27ecc83acf7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
obtain repo format version and commit author name/email from .git/config
- Commit:
1d126e2d216c06991bbc586d796b3d002b2bd7d6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for reading .git/config; parser was based on isakmpd/conf.c