Commits
- Commit:
bbf6b41827fdaa1e6b99aac193ffbc55305afbd3
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got.1: list all options which can be used to generate a histedit script
- Commit:
19aad72f3661c7e82febf11d3687f7edd5bc3bae
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make gotd repo_read store want/have commit IDs in ID sets rather than arrays
Currently only used to detect and avoid storing duplicate IDs sent in want
and have lines by the client. If in the future we ever wanted to check which
IDs the client has already sent us we could now do O(1) hash table lookups
rather than iterating arrays.
ok op@
- Commit:
71654e8d472918dcc6ad677673c1da09d68a4d37
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
Apply 'histedit -e' wording tweak from James Cook, thanks!
- Commit:
5bedd79b0a5ac6601216ed43d3b71bd038c7e563
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
histedit_parse_list: avoid needless free(line)
getline(3) allows to safely re-use the storage.
While here rename `size' to `linesize', `len' to `linelen', and properly
initialize `linesize' to zero; suggested by tb@
ok tb@
- Commit:
49f76ad0c2bd708657aeec16ca8a330dac21ddca
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
in got.1, clarify what users are expected to do during 'histedit -e'
Gap in the documentation pointed out by James Cook.
- Commit:
f8da67e8340977371b6ec3114502ae8baa5dee1f
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fall back to vi(1) instead of ed(1) if neither EDITOR nor VISUAL are set
ed users are reading files with their minds rather then their eyes, and
might therefore be missing important visual clues we write into files
before the user gets to edit them. Use of vi(1) ensures that such clues
will not be missed.
- Commit:
a578d6ec6d3818f6a19379ef10e6def9dc71abb1
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix GOT_IMSG_COMMIT_TRAVERSAL_REQUEST
The sending and receiving side are sending the data differently. It
works now by chance since a struct got_object_id is "just" a
SHA1_DIGEST_LENGTH sized buffer, but will break in the future.
Furthermore, the structure of the data as described in got_lib_privsep.h
is not respected, as the path_len field is not transmitted.
Change it to send/receive a whole struct got_object_id, the path without
the NUL and the proper length. (The path is also actually mandatory, so
assert it too.)
improvements + ok stsp@
- Commit:
12bec09b8ee75929ed950b389867d6116246a690
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
remove now unused sha1 handling from inflate and deflate
both were changed to use the new got_hash APIs.
- Commit:
7b074ee1ba7f2a0f63c30e6fee0f3715f0c3d2ed
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add xfail test for "got update" replacing a file with a directory
ok stsp
- Commit:
680b44a7e950277747770bc4302b55d2830e48df
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: remove unused variable
found_libbsd isn't used any more.
- Commit:
398ba35fc0b8095d60ecaf9613a4be438b18c5fd
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: update PLATFORM display
Fixes openbsd.
- Commit:
01a22331ae6bf3ba9eb98d12d3542832f084074f
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add OpenBSD to PLATFORM detection
- Commit:
3aa316cbcf696304c13f295e70b40c94ac75d17d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: improve SHA detection
Original patch from Omar Polo. Tweak by me.
- Commit:
06dea620797245512753a0381061eed71bd34dc1
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: remove compat/xmalloc.[ch]
These wrappers aren't used in -portable.
From Omar Polo.
- Commit:
7481a082712c54222e8d31ed08a109145090a913
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add LICENCE util/got-portable-ver.sh to dist
Update EXTRA_DIST to include these two files.
- Commit:
db83f7cf0ad39f3594b7ceb001a88d6d64cbaea4
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add missing copyright headers
- Commit:
415a43bb0c7491db8a907b4e5bbdf9894602d651
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: README (TODO): mention compat/ auditing
- Commit:
9590ecb003cf59d297892fb21ef67e653ade7c2e
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: template: use Makefile.common
libbsd-overlay needs to be declared properly with the correct AM_CFLAGS,
but this only happens via a common Makefile.common.in template which
gets filled out at ./configure time.
This properly ensures libbsd compat libraries, such as getprogname() are
correctly found on the system.
- Commit:
20c2019fa7a71a1430ca455d4c0350ba61ad472c
- From:
- Anna Vyalkova <cyber+misc@sysrq.in>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
portable: template: add AC_USE_SYSTEM_EXTENSIONS
Fixes, for example, a few warnings on GNU systems where -D_GNU_SOURCE
needs to be used for asprintf(3) visibility.
Patch by Anna Vyalkova, thanks!
- Commit:
22daed474b0a883316ddb34ec2e7f8ef96375540
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
merge TODO wording tweak: 'got rebase' says "forwarding", not "fast-forwarding"
- Commit:
926fa84fb47f06ee935b01278c841e84fa92f081
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix bad wording used in previous commit
- Commit:
db34521aaadfa21ff81addd90a52bc3117cd99e1
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add a TODO item for 'got merge' based on IRC discussion with James Cook
- Commit:
9806251f8cd36107295a5cbb08ad61d2a6de913c
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
properly initialize csum struct in write_packed_object()
fixes send.sh test fallout on arm64 and should also fix i386
ok op@
- Commit:
70b8fa9287a63564c07fb972714585fb10b78761
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add some helper functions to compute hashes
This adds a set of functions to abstract over SHA1Init, SHA1Update,
SHA1Final, their respective SHA256 variants and how to compare digests.
Replace all the SHA1*() usage with the new APIs. It's a preparatory
step for sha256 handling.
ok stsp@
- Commit:
b1ec8cee26c37a4d2687babea76a8ba4e7d724ad
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: compat: sha2
Add compatability support for sha2 for systems which don't natively have
it.
This has been stolen from OpenBSD. Thanks!