|
e54cc94a
|
2020-11-11T00:34:59
|
|
plug two memory leaks in tog's draw_file()
|
|
fe621944
|
2020-11-10T22:54:37
|
|
merge new diff implementation from the git.gameoftrees.org diff.git repository
This new diff implementation was started by Neels Hofmeyr during the u2k20
hackathon and now replaces diffreg.c code lifted from the OpenBSD base system.
The integration of this code into Got was done by me.
Got now uses the patience diff algorithm by default.
The diff.git repository will remain the primary repository for the diff code,
which already compiles and runs on other operating systems such as Linux.
Any fixes and improvements for files inherited from the diff.git repository
should be written against that repository and synced to got.git afterwards.
|
|
2bea8602
|
2020-11-10T22:37:05
|
|
bump version number
|
|
b85f4340
|
2020-11-10T22:31:37
|
|
typo fix in CHANGES
|
|
cd5a3383
|
2020-11-10T22:27:50
|
|
fix 0.44 release date in CHANGES file
|
|
76e818c5
|
2020-11-10T22:21:10
|
|
changes for 0.44
|
|
a5a8a332
|
2020-11-09T16:53:04
|
|
remove unused variable in gotweb.c, patch by Martin Vahlensieck (thanks)
|
|
a03d32e0
|
2020-11-09T16:46:41
|
|
fix on keywork in gotweb parse.y, patch by Martin Vahlensieck (thanks)
|
|
f6d8c0ac
|
2020-11-09T16:04:18
|
|
fix replacing symlinks with files
And add a test case which verifies that the inverse also works,
i.e. a symlink being replaced with a regular file.
problem reported and fix tested by jrick
|
|
63df146d
|
2020-11-09T16:03:35
|
|
fix missing unlink(tmppath) in error cases of install_blob()
|
|
2ac8aa02
|
2020-11-09T16:02:12
|
|
clear staged file type in file index entries whenever staged status is cleared
|
|
4fedbf4c
|
2020-11-07T17:59:31
|
|
avoid got_repo_map_path() in 'got tree' if a work tree is available
Note that got_worktree_resolve_path() will return a path based on
the current working directory if the argument is the empty string.
This quirk keeps the behaviour of 'got tree' intact which depends
on the current working directory if run in a work tree.
ok naddy@
|
|
9314b9f4
|
2020-11-06T21:12:26
|
|
test case for 'got integrate' failing if symlink changes to file; patch by jrick
This test verifies the current behaviour, even though it is not the most
desirable behaviour.
|
|
727173c3
|
2020-11-06T00:20:05
|
|
initialize sb.st_mode after stat(2) failure in got_worktree_resolve_path()
|
|
01740607
|
2020-11-04T20:18:53
|
|
avoid got_repo_map_path() in 'got blame'
'got blame' does not need access to the work tree. So far the work tree
was completely hidden with unveil(). We must now expose the work tree
while resolving the path, so unveil() calls are shuffled around slightly.
Failing realpath() calls would mess with path resolution otherwise.
There's a bug in got_worktree_resolve_path() where it failed to canonicalize
a path constructed from a user-specified path that does not exist on disk.
Note that this path falls into strncmp() a few lines down. I am fixing this
by adding canonicalization. Generally, joining paths with asprintf() and
comparing paths with strncmp() is fragile. A more general solution might be
needed but I am leaving that for another day.
ok naddy
|
|
7f9bfb31
|
2020-11-01T22:49:19
|
|
replace resolve_commit_arg() helper in got.c with got_repo_match_object_id()
|
|
3818e3c4
|
2020-11-01T16:28:46
|
|
convert all remaining instances of chmod(2) to fchmod(2)
ok stsp
|
|
0843a4ce
|
2020-10-31T04:54:20
|
|
use fchmod(2) instead of chmod(2). it is less racy, and we just opened the descriptor.
ok naddy@ stsp@
|
|
f8c47409
|
2020-10-28T15:52:46
|
|
fix permissions mode bits for fetched pack files; patch by Alisdair MacLeod
|
|
579bd556
|
2020-10-24T13:18:03
|
|
prevent a NULL dereference if 'got log -p' runs against a root commit
|
|
eef9542c
|
2020-10-22T20:37:50
|
|
preserve what was passed in if got_repo_map_path() can't figure out a path
problem found by + ok naddy
|
|
603cdeb0
|
2020-10-22T20:37:50
|
|
make 'got log' avoid got_repo_map_path() if run in a work tree
ok naddy
|
|
20b7abb3
|
2020-10-22T20:36:23
|
|
detect unknown repository format extensions (such as sha256 format)
ok millert
|
|
60ca2a50
|
2020-10-20T23:55:11
|
|
bump version number
|
|
47d693bd
|
2020-10-20T22:54:15
|
|
CHANGES for 0.43
|
|
62d463ca
|
2020-10-20T22:43:59
|
|
indentation fixes
|
|
54eb00d5
|
2020-10-20T22:25:57
|
|
properly handle nonexistent remote repository names given to 'got fetch'
found by jrick
ok naddy
|
|
f5375317
|
2020-10-20T21:09:01
|
|
use got_path_dirname() in install_blob() to avoid const dirname(3)
ok naddy
|
|
f4994adc
|
2020-10-20T21:09:01
|
|
use got_path_dirname() in install_symlink() to avoid const dirname(3)
ok naddy
|
|
ce031e9e
|
2020-10-20T21:09:01
|
|
use got_path_dirname() in is_bad_symlink_target()
ok naddy
|
|
ed6b5030
|
2020-10-20T21:09:01
|
|
use got_path_dirname() in merge_blob() instead of assuming const dirname(3)
ok naddy
|
|
3524bbf9
|
2020-10-20T21:09:01
|
|
make merge_file() use got_path_dirname() instead of assuming const dirname(3)
ok naddy
|
|
aedea96d
|
2020-10-20T21:09:01
|
|
adapt got_open_worktree to non-const dirname(3)
ok naddy
|
|
2513f20a
|
2020-10-20T21:09:01
|
|
plug memory leaks in error paths; found by naddy
|
|
74cfe85e
|
2020-10-20T21:09:01
|
|
use got_path_dirname() in tog's input_log_view(); avoids const dirname(3)
ok naddy
|
|
20a2ad1c
|
2020-10-20T21:09:01
|
|
use got_path_dirname() in schedule_for_deletion(); avoids const dirname(3)
ok naddy
|
|
fddefe3b
|
2020-10-20T21:09:01
|
|
use got_path_dirname() in remove_ondisk_file(); avoids const dirname(3)
ok naddy
|
|
0c93d204
|
2020-10-20T21:09:00
|
|
tried_root in got_open_repo is not needed
ok naddy
|
|
aff6eea4
|
2020-10-20T21:09:00
|
|
handle non-const dirname in got_repo_open() and plug a memory leak
ok naddy
|
|
9aceaadf
|
2020-10-20T21:09:00
|
|
properly skip to the end upon error in got_repo_open()
ok naddy
|
|
0c4004e3
|
2020-10-20T21:09:00
|
|
handle non-const dirname(3) in got_path_dirname()
ok naddy
|
|
f0207f6a
|
2020-10-19T23:14:59
|
|
switch to got_path_basename() in cmd_checkout()
ok millert
|
|
d34b633e
|
2020-10-19T23:14:59
|
|
use got_path_basename() in match_deleted_or_modified_ct()
ok millert
|
|
102b254e
|
2020-10-19T23:14:59
|
|
switch to got_path_basename() in alloc_added_blob_tree_entry()
ok millert
|
|
1233e6b6
|
2020-10-19T23:14:59
|
|
switch to got_path_basename in revert_file
ok millert
|
|
562386c5
|
2020-10-19T23:14:59
|
|
update got_path_basename() doc string
ok millert
|
|
0a9483d0
|
2020-10-19T23:14:59
|
|
handle non-const basename in got_path_basename()
ok millert
|
|
dbdd6209
|
2020-10-19T23:14:59
|
|
handle non-const basename in resolve_symlink()
ok millert
|
|
4a26d3f8
|
2020-10-07T22:37:48
|
|
fix a bug where 'got status' showed an unchanged empty file as changed
|
|
6b36edd8
|
2020-10-03T19:15:22
|
|
accommodate ls -l implementations that print "total 0" in an empty directory
ok stsp
|
|
6c8da0c6
|
2020-10-03T19:14:53
|
|
rewrite argument parsing with the POSIX getopts shell built-in
ok stsp
|
|
016859fc
|
2020-10-02T19:30:50
|
|
suggest aggregated pathnames in find(1) example
ok stsp
|
|
42a285e2
|
2020-10-01T20:52:12
|
|
unveil repositories read-write when adding tags with 'got tag'
|
|
e5a14fe3
|
2020-10-01T20:52:11
|
|
missed one case while changing $() to `` (found by rczlonka)
|
|
743f0d3e
|
2020-10-01T20:52:11
|
|
add quotes around $GOT_TEST_ROOT and avoid mktemp -p; suggested by naddy
|
|
11f4fa81
|
2020-10-01T20:52:11
|
|
allow regress test data to be stored in locations other than /tmp
|
|
6879ba42
|
2020-10-01T15:15:22
|
|
do not treat the -h and -V flags as errors
When run with the -h or -V option, output the help or version text
to stdout and exit with success (0). Only write usage and help
information to stderr and exit with error (1) if there is a mistake
in the command syntax.
tweak and ok stsp
|
|
0f84e499
|
2020-09-30T18:24:25
|
|
bump version number
|
|
2b451e1a
|
2020-09-30T16:44:01
|
|
changes for 0.42
|
|
f535bcd4
|
2020-09-30T16:38:17
|
|
fix 'bad path' error from 'got clone' by unveiling the repository path again
Problem found by jrick
|
|
9814e6a3
|
2020-09-27T14:55:18
|
|
prefer the BSD extension to reset getopt over the GNU one
Sadly there is no portable way to reset getopt(3).
BSD: optind = 1; optreset = 1;
GNU: optind = 0;
ok stsp
|
|
1367695b
|
2020-09-26T20:53:13
|
|
fix potential type mismatches between format specifiers and arguments
Cast printf arguments of type time_t and off_t to long long to match
the %lld format specifier on platforms where this might not be the
case. In parse.y, switch the number variable to long long because
all its interactions are with that type anyway.
ok millert stsp
|
|
bfa12d5e
|
2020-09-26T18:59:46
|
|
rework got's commit-time log message modification check
Use a new approach for detecting unchanged log messages: Strip comments
and leading/trailing empty lines from both the initial content and the
modified log message, then compare the result. Do not assume a fixed
upper limit for the length of a line.
Change suggested and patch tested by jrick
typo fix + ok naddy
|
|
820059fa
|
2020-09-25T22:49:42
|
|
whitespace fixes (patch by jrick)
|
|
b8adfa55
|
2020-09-25T21:35:10
|
|
add "branch" keyword to got.conf which specifies a list of branches to fetch
ok tracey
|
|
cad0b9e8
|
2020-09-25T19:11:47
|
|
remove unused #includes
|
|
7d6fcfbf
|
2020-09-25T09:52:13
|
|
bump version number
|
|
5a7c94c1
|
2020-09-25T09:49:22
|
|
CHANGES for 0.41
|
|
9f6f3943
|
2020-09-24T22:44:11
|
|
restore code removed in b5f0780096f443734de8fc503ca92bf737e2a7b2 and complete code so sub directories work in gotweb
This was pointed out by uwerler in IRC.
ok stsp
|
|
e03cc834
|
2020-09-24T16:47:06
|
|
handle failed connection attempts to git:// servers; patch by jrick
|
|
b08a0ccd
|
2020-09-24T14:39:18
|
|
do not pledge 'got integrate' in a PROFILE=1 build
found by jrick on freenode
|
|
04d9a9ec
|
2020-09-24T13:45:44
|
|
allow an interrupted 'got clone' to be resumed by 'got fetch'
Set up config files as soon as possible such that 'got fetch' has enough
information in order to resume an interrupted clone operation. We need to
receive at least a default HEAD branch name from the server before we can
set up our configuration files.
The previous code also verified whether the default branch name supplied by
the server resolved to a commit received in the pack file. This check cannot
be done early but a wrong branch name in a config file can be fixed easily.
|
|
66cb1a7f
|
2020-09-24T13:45:36
|
|
strip trailing slashes from repository path in got_fetch_parse_uri()
|
|
7c0b7f42
|
2020-09-24T11:00:06
|
|
refactor code which creates config files for 'got clone' using helper functions
|
|
a9c2d4c2
|
2020-09-24T10:53:18
|
|
fix default branch name written to Git config file by 'got clone'
The generated Git config file instructed Git to fetch all branches rather
than the default branch as was intended.
Check generated configuration files in all clone tests in order to catch
such problems in the future.
|
|
5e082626
|
2020-09-24T10:51:21
|
|
remove redundant leading slashes from repository path parsed from got.conf
|
|
0921e08f
|
2020-09-24T10:49:36
|
|
remove redundant leading slashes from repository path when parsing URIs
|
|
2751fe64
|
2020-09-24T09:16:18
|
|
let 'got clone' try to connect to server before creating repository contents
|
|
29c68398
|
2020-09-24T00:51:04
|
|
check final repository state in test_histedit_fold_add_delete
|
|
5a17689a
|
2020-09-24T00:28:58
|
|
fix matching the object ID of the first object in a pack index
An object ID which appears first in a pack index was wrongly ignored by
got_packidx_match_id_str_prefix(). The result was a spurious "object not
found" error when this object ID was passed on the command line.
Reported by jrick on freenode who was lucky enough to this edge case!
|
|
0a22ca1a
|
2020-09-23T22:31:00
|
|
make 'got histedit' collapse folded add+delete operations into a no-op
If a merged commit wants to delete a locally added file, and this locally
added file matches the content which was deleted in the commit being merged,
we can go ahead with the deletion because there is no risk of data loss.
fixes the histedit problem reported by jrick on freenode
|
|
ecfff807
|
2020-09-23T19:10:15
|
|
add an xfail test for a histedit issue where a deleted file remains
If a previous commit introduces a new file, and it is folded into a commit
that deletes the same file, the file still exists after the histedit.
reported by jrick on freenode
|
|
abdd569e
|
2020-09-23T11:41:52
|
|
skip remote HEAD refs in gotweb's gw_get_commit(); matches got and tog
|
|
3721d310
|
2020-09-23T11:40:09
|
|
repair gotweb build; broken since 48cae60d
|
|
521dbd35
|
2020-09-22T16:48:28
|
|
trim leading slashes from repository path written to got.conf (found by naddy)
|
|
a1c4175c
|
2020-09-22T00:42:02
|
|
there is no need to grab locks when opening refs in got_ref_delete()
|
|
48cae60d
|
2020-09-22T00:03:02
|
|
make dangling symbolic references show up in 'got ref -l'
Storing a resolved ID for each reference list item was a bad idea.
This ID cannot be resolved if a symbolic references points to a reference
which does not exist. Such symrefs were skipped by got ref -l as a result.
Just let users of reference lists resolve the IDs as needed.
|
|
2a104ff6
|
2020-09-21T23:37:54
|
|
make 'got ref -d' delete both loose and packed representations of the reference
|
|
cb3903e1
|
2020-09-21T12:21:30
|
|
bump version number
|
|
6a3f2fe4
|
2020-09-21T12:15:03
|
|
changes for 0.40
|
|
ce79a7f1
|
2020-09-21T12:11:10
|
|
sync dist file list
|
|
3185a744
|
2020-09-21T12:06:55
|
|
install got-read-gotconfig into gotweb's chroot environment
|
|
b46c1e04
|
2020-09-20T22:22:04
|
|
Print newline to clear the bottom line when tog exits.
When a curses(3)-based application exits, the cursor is positioned
at the start of the bottom line, and the shell will issue the new
prompt there. However, the bottom line may still contain remnants
of the curses screen. This is only noticeable on terminals that
do not switch to/from an alternate screen buffer.
ok stsp
|
|
e6db6399
|
2020-09-20T10:11:56
|
|
allow overriding the From: header in mail sent by got-build-regress.sh
|
|
c47340da
|
2020-09-20T00:17:51
|
|
in cmd_checkout() handle basename(3) modifying its argument
ok naddy@
|
|
ebc5bf64
|
2020-09-19T19:26:16
|
|
add missing <sys/types.h> include
ok stsp
|
|
6c13dcd2
|
2020-09-18T18:24:09
|
|
send gitconfig imsg string values the same way as gotconfig ones are sent
|
|
5874ea87
|
2020-09-18T17:58:10
|
|
follow-up to be96c417: Do not assume a \0 when receiving GOTCONFIG_STR_VAL.
|
|
a9705505
|
2020-09-18T17:51:30
|
|
allow NULL pointer argument for got_free_gotconfig()
|
|
c8c7d149
|
2020-09-17T18:59:48
|
|
expand arguments in shell script since brace expansion is not in POSIX
ok stsp
|