Commits
- Commit:
4ada367c22bf146c8150cb54c980abc40c6e4465
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use INT32_MAX rather than INT_MAX for GOT_FILEIDX_MAX_ENTRIES
it's a different way to spell the same number, but it's more evocative
since the on-disk format is 32 bits wide.
ok stsp
- Commit:
9b2430434d761486865c6b0961d5053349c571eb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
speed up read_fileindex_path()
Use a local buffer instead of calling reallocarray() every 8 bytes;
the speed up is measurable. The downside is that we're now limited
to paths long at most PATH_MAX bytes, but since this is the fileindex
it's not an issue in practice.
ok jamsek stsp
- Commit:
df6221c7df42758252c508006201c3f66e6ae831
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use a separate .cvg meta data directory for cvg(1) work trees
This prevents mixing the use of got and cvg clients in the same work tree.
Avoids confusion going forward while cvg differentiates itself further.
tog(1) and gotadmin(1) remain compatible with both work tree formats.
These tools only read work trees to locate the corresponding repository.
- Commit:
565f18a82d800171c586b1877798c6e794b56505
- From:
- Omar Polo <op@omarpolo.com>
- Date:
free fileindex entry upon add_entry() failure
Very unlikely (an occurrence of it would mean that got produced an
invalid fileindex) and harmless anyway since we would just terminate,
but a leak is still a leak.
ok stsp@
- Commit:
9a298e5c10f6c68afbaca853454de2787a312c81
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
support histedit fold operations which delete a file and then add it again
problem found by naddy@
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:
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:
b4b2adf52ba9b7ad15eb9423cbc20034cdacbbbf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add functions to extract object ids from fileindex entries
ok stsp
- Commit:
dc2745ec920dd9d588254dab4ecb6308622b06dc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
zap double empty line
- Commit:
d8bacb933720b8819f0c4e76b004775aa1885b9b
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
got: minor refactor of got_pathlist_free() API
Accept flag parameter to optionally specify which pointers to free. This saves
callers looping through the list to free pointers.
ok + fix stsp@
- Commit:
5e91dae4dd43b8024731223110ab18f505f453ac
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove trailing whitespace; patch by Josiah Frentsos
- Commit:
336075a42a5ae0fa322db734c481d21998e82bb8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
build with -Wmissing-prototypes
ok stsp@
- Commit:
a7472cb3288c2323830462f53706b013f33c444e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check return value of RB_INSERT; ok + memleak fix by op@
- Commit:
a47330a24a002793ebfd33553aeb80a98f940755
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix 'got status' reporting all directories on NFS mounts as unversioned
Problem found and fix tested by Ted Bullock.
ok millert, naddy
- Commit:
c0df59665de91324eeab1808c6c4e41343f21789
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
wrap overlong lines
- Commit:
e7ae0bafeffce6697bc3b67fda753e5bac995cb6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add O_CLOEXEC (close-on-exec) to openat(2) calls
suggested by millert
ok thomas_adam
- Commit:
8f2ca62d67489d1f75ac4eb42590a9b720c66ccc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not skip ignored directories in 'got status' if they contain tracked files
Fixes regression introduced by commit 41f061b2f459318f3738f59d7676efccc4beb344
where tracked files inside an ignored directory were reported as missing.
- Commit:
62da3196627c41ea9acc5f53e0da9887dca2b82d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
skip ignored directories during 'got status' disk crawl
- Commit:
a769b60bb76783d3bc6637d75907b6ca5d623f40
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a bug where files skipped by 'got update' could not be updated again
ok semarie@
- Commit:
194cb7cb2a0f223daf0baa74a1e85bbbb44c10fd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix bug where 'got up -c commit path' deleted unrelated files from work tree
Problem reported by Timo Myyrä
- Commit:
437adc9d5be73b4b89441362ec89de754374a5a6
- From:
- Yang Zhong <yzhong@freebsdfoundation.org>
- Date:
add fd field to got_worktree, modify got_fileindex_entry_update to use fds
These changes are intended to make got more compatible
with FreeBSD's Capsicum.
ok stsp
- Commit:
0823ffc2f6c509dbcedfb15d0d1011a253b45ef9
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use modern POSIX timestamp fields in struct stat
ok stsp
- Commit:
aa9ad2764a70adc7378ea2b701d08f9dd7c8dd7d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix use of uninitialized variable in got_fileindex_entry_update()
- Commit:
0aeb8099a04ea427eff4a7b6cb52b1cba62a87b0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
set a staged file type and handle it separately from the on-disk file type
- Commit:
cf34e6e70511929983a7a035e946966e8a833b8f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
mark functions which are not exposed to other files as static