Log

Author Commit Date CI Message
Stefan Sperling 0c4004e3 2020-10-20T21:09:00 handle non-const dirname(3) in got_path_dirname() ok naddy
Stefan Sperling f0207f6a 2020-10-19T23:14:59 switch to got_path_basename() in cmd_checkout() ok millert
Stefan Sperling 102b254e 2020-10-19T23:14:59 switch to got_path_basename() in alloc_added_blob_tree_entry() ok millert
Stefan Sperling dbdd6209 2020-10-19T23:14:59 handle non-const basename in resolve_symlink() ok millert
Stefan Sperling 1233e6b6 2020-10-19T23:14:59 switch to got_path_basename in revert_file ok millert
Stefan Sperling d34b633e 2020-10-19T23:14:59 use got_path_basename() in match_deleted_or_modified_ct() ok millert
Stefan Sperling 562386c5 2020-10-19T23:14:59 update got_path_basename() doc string ok millert
Stefan Sperling 0a9483d0 2020-10-19T23:14:59 handle non-const basename in got_path_basename() ok millert
Stefan Sperling 4a26d3f8 2020-10-07T22:37:48 fix a bug where 'got status' showed an unchanged empty file as changed
Christian Weisgerber 6b36edd8 2020-10-03T19:15:22 accommodate ls -l implementations that print "total 0" in an empty directory ok stsp
Christian Weisgerber 6c8da0c6 2020-10-03T19:14:53 rewrite argument parsing with the POSIX getopts shell built-in ok stsp
Christian Weisgerber 016859fc 2020-10-02T19:30:50 suggest aggregated pathnames in find(1) example ok stsp
Stefan Sperling 42a285e2 2020-10-01T20:52:12 unveil repositories read-write when adding tags with 'got tag'
Stefan Sperling 11f4fa81 2020-10-01T20:52:11 allow regress test data to be stored in locations other than /tmp
Stefan Sperling e5a14fe3 2020-10-01T20:52:11 missed one case while changing $() to `` (found by rczlonka)
Stefan Sperling 743f0d3e 2020-10-01T20:52:11 add quotes around $GOT_TEST_ROOT and avoid mktemp -p; suggested by naddy
Christian Weisgerber 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
Stefan Sperling 0f84e499 2020-09-30T18:24:25 bump version number
Stefan Sperling 2b451e1a 2020-09-30T16:44:01 changes for 0.42
Stefan Sperling f535bcd4 2020-09-30T16:38:17 fix 'bad path' error from 'got clone' by unveiling the repository path again Problem found by jrick
Christian Weisgerber 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
Christian Weisgerber 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
Stefan Sperling 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
Stefan Sperling 820059fa 2020-09-25T22:49:42 whitespace fixes (patch by jrick)
Stefan Sperling b8adfa55 2020-09-25T21:35:10 add "branch" keyword to got.conf which specifies a list of branches to fetch ok tracey
Christian Weisgerber cad0b9e8 2020-09-25T19:11:47 remove unused #includes
Stefan Sperling 7d6fcfbf 2020-09-25T09:52:13 bump version number
Stefan Sperling 5a7c94c1 2020-09-25T09:49:22 CHANGES for 0.41
Tracey Emery 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
Stefan Sperling e03cc834 2020-09-24T16:47:06 handle failed connection attempts to git:// servers; patch by jrick
Stefan Sperling b08a0ccd 2020-09-24T14:39:18 do not pledge 'got integrate' in a PROFILE=1 build found by jrick on freenode
Stefan Sperling 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.
Stefan Sperling 66cb1a7f 2020-09-24T13:45:36 strip trailing slashes from repository path in got_fetch_parse_uri()
Stefan Sperling 7c0b7f42 2020-09-24T11:00:06 refactor code which creates config files for 'got clone' using helper functions
Stefan Sperling 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.
Stefan Sperling 5e082626 2020-09-24T10:51:21 remove redundant leading slashes from repository path parsed from got.conf
Stefan Sperling 0921e08f 2020-09-24T10:49:36 remove redundant leading slashes from repository path when parsing URIs
Stefan Sperling 2751fe64 2020-09-24T09:16:18 let 'got clone' try to connect to server before creating repository contents
Stefan Sperling 29c68398 2020-09-24T00:51:04 check final repository state in test_histedit_fold_add_delete
Stefan Sperling 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!
Stefan Sperling 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
Stefan Sperling 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
Stefan Sperling abdd569e 2020-09-23T11:41:52 skip remote HEAD refs in gotweb's gw_get_commit(); matches got and tog
Stefan Sperling 3721d310 2020-09-23T11:40:09 repair gotweb build; broken since 48cae60d
Stefan Sperling 521dbd35 2020-09-22T16:48:28 trim leading slashes from repository path written to got.conf (found by naddy)
Stefan Sperling a1c4175c 2020-09-22T00:42:02 there is no need to grab locks when opening refs in got_ref_delete()
Stefan Sperling 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.
Stefan Sperling 2a104ff6 2020-09-21T23:37:54 make 'got ref -d' delete both loose and packed representations of the reference
Stefan Sperling cb3903e1 2020-09-21T12:21:30 bump version number
Stefan Sperling 6a3f2fe4 2020-09-21T12:15:03 changes for 0.40
Stefan Sperling ce79a7f1 2020-09-21T12:11:10 sync dist file list
Stefan Sperling 3185a744 2020-09-21T12:06:55 install got-read-gotconfig into gotweb's chroot environment
Christian Weisgerber 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
Stefan Sperling e6db6399 2020-09-20T10:11:56 allow overriding the From: header in mail sent by got-build-regress.sh
Stefan Sperling c47340da 2020-09-20T00:17:51 in cmd_checkout() handle basename(3) modifying its argument ok naddy@
Christian Weisgerber ebc5bf64 2020-09-19T19:26:16 add missing <sys/types.h> include ok stsp
Stefan Sperling 6c13dcd2 2020-09-18T18:24:09 send gitconfig imsg string values the same way as gotconfig ones are sent
Stefan Sperling 5874ea87 2020-09-18T17:58:10 follow-up to be96c417: Do not assume a \0 when receiving GOTCONFIG_STR_VAL.
Stefan Sperling a9705505 2020-09-18T17:51:30 allow NULL pointer argument for got_free_gotconfig()
Christian Weisgerber c8c7d149 2020-09-17T18:59:48 expand arguments in shell script since brace expansion is not in POSIX ok stsp
Stefan Sperling be96c417 2020-09-17T11:51:59 fix got.conf overriding GOT_AUTHOR even if no author is set in got.conf
Christian Weisgerber 9439a990 2020-09-16T20:37:41 replace ksh syntax with POSIX arithmetic expressions ok kn stsp
Stefan Sperling 72862ecf 2020-09-16T12:04:07 add missing space in got-worktree(5) synopsis
Christian Weisgerber 0429cd76 2020-09-15T19:09:36 fix typo in error message
Stefan Sperling 934b035c 2020-09-15T09:56:52 expand "Got" to "Game of Trees" in got-worktree(5) synopsis line for consistency
Stefan Sperling 5b735925 2020-09-15T09:52:03 document our default choice of text editor; suggested by Ricky Cintron
Christian Weisgerber 8de9818a 2020-09-14T20:12:18 remove unused #includes from the new got-read-gotconfig/parse.y ok tracey
Christian Weisgerber e12e0e21 2020-09-14T17:53:41 do not rely on <zlib.h> to pull in <unistd.h>
Stefan Sperling c74678b7 2020-09-14T14:33:30 bump version number
Stefan Sperling 0866d289 2020-09-14T14:19:56 changes for 0.39
Stefan Sperling 0b1a07a1 2020-09-14T14:06:01 sync distfile list
Stefan Sperling 0f43fed9 2020-09-14T14:05:11 add got.conf(5) to MAN list in Makefile
Stefan Sperling 53643ae1 2020-09-14T13:51:51 document why got.conf(5) will not configure the editor to use
Christian Weisgerber f6cae3ed 2020-09-13T14:05:17 switch function declarations from Korn shell to Bourne/POSIX shell syntax ok stsp
Christian Weisgerber 23c57b28 2020-09-11T19:44:18 Stop including <sys/syslimits.h> directly. POSIX says the limits defined there are available from <limits.h>, which almost all affected source files already included anyway. ok millert stsp
Stefan Sperling 46215d2a 2020-09-11T18:32:20 add 'got histedit' to got.1's list of commands which use EDITOR/VISUAL
Stefan Sperling 42536c09 2020-09-11T18:31:21 fix misplaced comma in got.conf(5) SEE ALSO section
Stefan Sperling 59f86c76 2020-09-11T17:26:40 plug memory leaks in error paths while collecting log messages
Stefan Sperling 97972933 2020-09-11T17:26:08 check for errors from write(2) and close(2) while collecting log messages
Stefan Sperling 50b0790e 2020-09-11T17:04:57 add per-worktree got.conf(5) file in the .got directory; ok millert
Christian Weisgerber 1601cb9f 2020-09-11T15:09:35 use plain write() in place of dprintf() with a pre-formatted string step-by-step guidance from millert; ok millert stsp
Christian Weisgerber 0823ffc2 2020-09-10T20:44:40 use modern POSIX timestamp fields in struct stat ok stsp
Stefan Sperling 53dfa00d 2020-09-10T19:54:33 initialize variable in got-read-gotconfig to fix SIGBUS in free(3) on sparc64
Stefan Sperling 3168e5da 2020-09-10T00:10:55 zap trailing tabs
Stefan Sperling cc8dff2e 2020-09-10T00:07:08 remove unused files; their contents were merged into got-read-gotconfig
Stefan Sperling 257add31 2020-09-09T23:57:40 add got.conf(5) configuration file ok tracey
Christian Weisgerber 78fb0967 2020-09-09T21:41:22 use the POSIX standard endian functions and explicitly include <endian.h> ok stsp
Christian Weisgerber 81a12da5 2020-09-09T19:35:32 do not rely on <zlib.h> to pull in <unistd.h> ok stsp
Stefan Sperling 4dbec0a8 2020-08-27T10:46:17 actually make use of an intermediate variable in cmd_clone() found by tracey's scan-build
Stefan Sperling ef744db3 2020-08-27T10:18:21 in got_object_commit_get_logmsg(), handle log messages which lack '\n' found by tracey's scan-build
Stefan Sperling d6b7d054 2020-08-27T10:06:18 exit the loop in got_privsep_recv_tree() upon error found while looking over tracey's scan-build results
Stefan Sperling fca1f6ad 2020-08-27T10:05:38 plug a memory leak in got_privsep_recv_tree() in error case found while looking over tracey's scan-build results
Stefan Sperling 766841c2 2020-08-13T19:12:57 add -s option to 'got remove' which deletes files in a particular status This makes it easy to deal with files that were deleted from disk by external tooling which modified the work tree. Such files are left in missing (!) status and can now be marked for deletion in bulk via 'got rm -s\! -R .' For consistency, modified (M) files can now be removed with 'got rm -s M' which implies 'got rm -f'. Prompted by feedback from krw@
Stefan Sperling 081470ac 2020-08-13T19:12:57 add -s option to 'got status' which acts as a status code filter Advantages over using grep are that the list of codes is validated against a list of known status codes, and that it is easier to match staged files which can display status codes in one or both of two columns. Prompted by feedback from krw@
Stefan Sperling ae6a6978 2020-08-09T21:56:11 speed up 'tog diff' get_filestream_info() a bit With this, 'tog diff' is able to display clang 10 commits. However, such huge diffs still take a rather long time to open. get_filestream_info() is a hack. Ideally, diff line-offset information needed by tog should be part of the result of the diff operation, rather than forcing tog to calculate line offsets during a post-processing step.
Stefan Sperling 7510f233 2020-08-09T20:37:53 simplify resource cleanup upon errors in get_filestream_info()
Stefan Sperling 0dc7faa9 2020-08-09T20:33:12 fix double-free when quitting tog's diff view; found by ofree at /home/stsp/src/got/tog/tog.c:3415 3415 free(s->line_offsets); (gdb) bt msg=0x80e2a4cd87e "chunk is already free %p") at /usr/src/lib/libc/stdlib/malloc.c:300 check=1) at /usr/src/lib/libc/stdlib/malloc.c:1070 clear=0, check=<optimized out>, argsz=0) at /usr/src/lib/libc/stdlib/malloc.c:1431 at /usr/src/lib/libc/stdlib/malloc.c:1488 at /home/stsp/src/got/tog/tog.c:3415 at /home/stsp/src/got/tog/tog.c:518 at /home/stsp/src/got/tog/tog.c:954 at /home/stsp/src/got/tog/tog.c:2728 at /home/stsp/src/got/tog/tog.c:5683 (gdb)
Tracey Emery 369eef86 2020-08-09T17:41:46 fix some memory leaks in tog
Stefan Sperling d93542d4 2020-08-08T12:09:35 In got-worktree(5), explain how to re-create a corrupt or missing file index.
Stefan Sperling 7fb414ae 2020-08-08T07:34:47 add a -q option to tests for quiet output and use it for 'make regress' Previous default output remains when test cases are run individually. ok tracey