Commits
- Commit:
456d8970e17b1f146aeb38a5e330063e190697d3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in got.1, clarify what users are expected to do during 'histedit -e'
Gap in the documentation pointed out by James Cook.
- Commit:
5a53ca9d31c0ec26e10887fb404d63242df55002
- From:
- Stefan Sperling <stsp@stsp.name>
- 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:
47cb6f8b62ed4ad39838a5d4702f593b23d3e7f2
- From:
- Omar Polo <op@omarpolo.com>
- 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:
d6baa0f6da2663235688f774619dbf494add2f27
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove now unused sha1 handling from inflate and deflate
both were changed to use the new got_hash APIs.
- Commit:
c3b9af18468be6672f62e2d321b5fc2893837c62
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
add xfail test for "got update" replacing a file with a directory
ok stsp
- Commit:
1eb5d2a086f570f5bd47339ea2f7e477d9503422
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
regress: git_rm will cd into the test repo by itself
- Commit:
e2bd307e144cf6a7c5a878d68e04bd8c744153ea
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
merge TODO wording tweak: 'got rebase' says "forwarding", not "fast-forwarding"
- Commit:
80be18be44c18ed586311d60524d01633b94cf6f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix bad wording used in previous commit
- Commit:
1756e377b0f3d32399f9bb06d235b261190cbf2f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a TODO item for 'got merge' based on IRC discussion with James Cook
- Commit:
017d8b7bf9006ae1bc36f6b1a38978f2782b363f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
properly initialize csum struct in write_packed_object()
fixes send.sh test fallout on arm64 and should also fix i386
ok op@
- Commit:
14f89e3e5394e931edf4581cfb229beef1de3f41
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
format message digest as hex string directly without snprintf()
ok op
- Commit:
ae25a666dd4099105786ef32f1e6ebaf92abe64d
- From:
- Omar Polo <op@omarpolo.com>
- 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:
87a3ab84d3eb87b790e3d34aeec2c344a8d7375b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
provide functions to parse/serialize different hashes
it abstracts over the hash type and ensures that object ids are zero'ed
before their sha1 digest is written. Needed by the incoming sha256
support.
ok stsp@
- Commit:
53bf0b541977b66862040d4b633fb6b5d3a3c6c8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename lib/sha1.c to lib/hash.c
It will soon grow functions to deal with sha256 too. stsp@ agrees.
- Commit:
5822e79e39a8777984e08b5d89a8c55d6aa0356d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include sha2.h too where sha1.h is included
In preparation for wide sha256 support; stsp@ agrees. Change done
mechanically with
find . -iname \*.[cy] -exec sam {} +
X ,x/<sha1\.h>/i/\n#include <sha2.h>
- Commit:
af48e677ec38c47d1177ca776b01e299b0f2a96d
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add missing colon after 'Message' in diff view
Patch by Josiah Frentsos, thanks!
- Commit:
2bf91741ebcd0f2201d0115e4a7d8c2ab1ba4c30
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number
- Commit:
1bff81626e23b917b4339eece22253e85936477d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
CHANGES for 0.84
- Commit:
5afebbd1b6bcfecf69d25e367e95c9906245fcf5
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- Date:
fix tog diff between arbitrary commits
Don't assume commit info is always written. This is only true when diffing a
commit against (one of) its direct parent(s). Otherwise we perform an invalid
read on a tmp got_diff_line array and end up passing bogus offsets to fseeko().
Bug found and fixed by stsp with a minor tweak by me.
ok jamsek for stsp's initial diff
ok stsp@
- Commit:
fd8d60a2d11af314daec9c6c7ad0ea5c7ac0abd0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: gc unused opendir(). ok stsp@
- Commit:
de51a12a5befe30cf15a089998d0136d52856dc2
- From:
- Omar Polo <op@omarpolo.com>
- 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:
1dda2072ee3eb04988c80d2a72522e489a606914
- From:
- Omar Polo <op@omarpolo.com>
- Date:
log gitconfig.c parser errors to stderr, not stdout. ok stsp@
- Commit:
92e48697fbbd62dbe4f1330698c13c1a93065b5e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: sync defaults
The first example is meant to show the default values for all the
options. Sync with reality.
- Commit:
d51d11be9ba86c2c5cf8d36994e56eeccb905865
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix 'got merge' so it parses gitconfig for author
cmd_merge is the only subcommand that may create commits that doesn't
parse the git config files, thusly failing for users without GOT_AUTHOR
defined.
Problem reported by James Cook who also provided an initial test case,
thanks!
ok jamsek
- Commit:
1a0d06a3c2608bd281c3c156a9b008508983decf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix "got fetch" hang against out-of-date remote repositories
Do not assume that remote repositories will always have our objects.
In Git protocol terms: Do not wait for an ACK from the server before
sending the final "done" message. Otherwise servers might be waiting
for more have-lines from us in order to find a common ancestor, which
will never be sent by us.
Problem reported by James Cook who also provided an initial test case
ok op@