Commits
- Commit:
ccf6dd5ee6c1143dcf745ddc604e192389882a38
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid signed vs unsigned comparisons in fetch.c
ssizeof() macro idea courtesy of millert@
ok millert@
- Commit:
c156c7a4f456c171f9e458793a2baa06389f8e1e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not mix up repositories if tog's -r option is used inside a work tree
with input from and ok naddy
- Commit:
5a8b373cd01671285df647379299fbc5f49707c1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix parsing of tag objects which lack a tag message
This problem could be triggered with the u-boot repository:
$ git clone --bare https://gitlab.denx.de/u-boot/u-boot.git
$ got log -r u-boot.git
got-read-pack: bad object data
got: bad object data
$
- Commit:
e8bfb8f3994fa8096bf56db895d969b4961f8b4b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix path existence check in got_object_tree_path_changed()
A symptom of this was a segfault in 'got blame distrib/miniroot/install.sub'
with the OpenBSD src.git from github, reported by jrick.
The problem was that the commit graph traversed one commit too far.
This could be more easily reproduced with 'got log':
got log -c 05f568 -P distrib/miniroot/install.sub
Which listed two commits instead of just the first one:
05f568ecc6aadefa1aff9064a29e798874a71409 <-- install.sub first created here
7c0d87f00e480cdf004324dad6f3e6f4418f8f42
"distrib/miniroot" exists in 7c0d87f00e480cdf004324... but not in the parent
of this commit. Ensure that we traverse the full path in tree1 even if an
intermediate tree2 cannot be opened. Instead of reporting success and a file
change if we can't traverse further through tree2, we now hit this failing
attempt to open the file 'install.sub' in tree object 180aa33df8d1 (tree1):
te1 = find_entry_by_name(tree1, seg, seglen);
if (te1 == NULL) {
err = got_error(GOT_ERR_NO_OBJ);
goto done;
}
fix tested and ok jrick
- Commit:
a4153d5b903b1fe20edad776a6d0ec3c3cbcc0aa
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
more concise fix for path_list_reverse_input() crash; suggested by millert
- Commit:
8891c2aba6a5f6cd43ab51b67115d4fbd0976f73
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix crash in path_list_reverse_input() after switch to unsigned loop index
- Commit:
85f4e1e7d36a206d3861d49c00e207d3e7fcab80
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix the type of variable 'idx' in update_packidx()
- Commit:
6059809a13b5d528052e38f84661039e6565f458
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; by emaste@freebsd
Same change as 16aeacf7088d, for subdirectories other than lib/
- Commit:
6d5a9006ab2a400b488b9e93ec9647fb9b2a0930
- From:
- Yang Zhong <yzhong@freebsdfoundation.org>
- Date:
add fd field to got_repository, modify got_packidx_open to use fds
These changes are intended to make got more compatible with
FreeBSD's Capsicum.
ok stsp
- Commit:
a615e0e7796ea1103a6e0d4b5dbb613459788666
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implicitly mark all files in work tree as up-to-date after rebase/histedit
This should always be correct, since rebase and histedit start out with a
clean and single-base-commit worktree, and end up committing all changes
across the entire work tree when they are successful.
tested by jrick and myself
- Commit:
0d5bb27670e5cdef181f8073984fd02be5a42d53
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow editing of log message comments with 'got histedit'
This makes it possible to remove just comment lines from log messages
during a histedit operation, leaving the rest of the log message as-is.
The behaviour of treating changes to comment lines as no-ops was coded
to prevent mistakes during 'got commit/import/tag', where the command
will error out if the log message template is not modified. This is not
appropriate for histedit because histedit is used to fix such mistakes.
ok millert@
- Commit:
73e7eb7d1cfead096b0297377490aeaac95a73f5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_fmt()
got_error_fmt() could eventually replace got_error_path() which has already
been used to construct errors with strings that are not actually paths...
ok millert@
- Commit:
4cc6a5a5fa3d5a5351d59385e614a0a78d167987
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_from_errno_fmt() for more flexibility in error messages
suggested by and ok millert
- Commit:
748d5cab9a3d0d5d0edc28c8fd38430c684b1e55
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
replace unprintable characters with '.' before passing them to curses
Otherwise, ncurses will replace them with some printable representation
whose width we can't predict, and wunctrl() fails to return the
replacement for 0x80..0x9f.
ok stsp
- Commit:
f5a09613ce18eb49de0d07d7f7a1dbd5dcac25c8
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
reset tog blame view's scroll position if line count shrinks too much
ok stsp
- Commit:
b2d2e70d74ef419da60fefbc2a7c5900c181e2e7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number
- Commit:
c39ec06321814be458150fc20e0278c9f5537b03
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
sync distfile list
- Commit:
dd30c874bb2667ff99decb1b542c7b0aa98ce24b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
CHANGES for 0.45
- Commit:
a347e6bb7cfe1f6a9df6234f6949003191418466
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
test behaviour of histedit -f with an empty log message
- Commit:
239f5c5ae4c041d2ea8dddae394ce357b016b7a1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a basic test case for histedit -f
- Commit:
71392a05f2ee999ddda39f6b5eb64d0bc292c0ce
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
prevent log message loss of folded commits during histedit
If the histedit log message editor exits without saving its buffer,
Got threw away log messages of all commits which were folded. Only the
last commit message is preserved, which could be something meaningless
like "fixup".
Instead, preserve the initial editor buffer content as-is.
That is not going to be an ideal log message, but doesn't throw away
information and stands out visually because the newly created log message
will start with a comment like '# log message of folded commit a0ff...'
Problem reported by jrick
- Commit:
b380533788adf056655d5bdf9d7e497e53c5d85f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
histedit -f conflicts with -F option
Also fixed as part of a different patch from jrick
ok jrick
- Commit:
ff69268e3d2a6d3adf3c7b6a1284fca5ac8fc62a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use a helper function to generate error messages for mutually exclusive options
Inspired by a different patch from jrick
ok jrick
- Commit:
9f6bb280654be7061fc00305743f6ace71f9a1cb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove redundant explanation of histedit -f and -m options from got.1
- Commit:
b54435ba03758ce44a7b635de5b0eb44a9aa994f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix typo in got.1: "only if" -> "if only"; pointed out by tracey