Commits
- Commit:
827a167b34401bd6541b199377e4e6c68d643151
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
Group options in accordance with style(9)
patch by Josiah Frentsos
- Commit:
d30ab56fff40b038af410d963b66e866a8e4e528
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
fix unused variable, function definition warnings for clang 15
- Commit:
8fb6814c7fc92dbee5d95b1c66383d00bfa60f49
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid allocating too many errors in cmd_info
got_error_path uses get_custom_err to get a statically allocated error
allocated on a buffer that's used a ring. This is nice and simple, but
the drawback is that thees custom errors shouldn't be used "for too
long" because they might get overwritten later.
cmd_info is one offender: change it to store a "simple" error and later
re-use it to construct the per-path error.
OK and tweaks stsp@
- Commit:
3ef734a17cb66c5ec85cdacaddc8be15237dcf69
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix "got tag" not tagging the work tree's current branch by default
found by jrick
- Commit:
c7d5c43cafada3470647a8b876d489018002f713
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: keymaps to jump to next/prev file/hunk in the diff
Add () and {} key maps to navigate to the previous and next file or hunk in
the diff. This required changing Got's diff API to collect line type metadata
in addition to the line offsets already produced as prompted by stsp.
ok stsp@
- Commit:
5f56d41e1acd9cce7202960acad0cab3516e9c26
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: add -c flag to apply at a specified commit
it's useful for e.g. to apply old patches that weren't generated by `got
diff' or git-diff(1) and so lacks the metadata needed for the 3-way
merge.
manpage improvements from and ok stsp@
- Commit:
2ed050c519e5d5706f53064a0e604533244ff969
- From:
- Omar Polo <op@omarpolo.com>
- Date:
`got patch' pledge early
ok stsp@
- Commit:
595228385f8c74590756ff446d5b84aad0ebfda7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: error if patchfile isn't a regular file
`got patch' cannot read patches from non-regular files for obvious
reasons. However, it could crash in sendmsg because pledge doesn't
allow to send file descriptors referring to directories. So, restrict
`got patch' to operate on regular files only and fail otherwise.
This still allows to read patches from symlinks since they're resolved
at open(2) time and the file type check is performed after.
There may be a marginal usefullness in reading patches from fifos, but
the current code doesn't allow that anyway since got-read-patch needs a
seekable file descriptor anyway.
ok tracey@
- Commit:
10a16316a03005a07c45b2bbf1b5644b64e846fb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tweak cmd_info; no functional changes intended
* don't allocate unused pack_fds
* drop wpath, cpath, proc, exec and sendfd pledge promises
* close the worktree
ok stsp@
- Commit:
543bec4ff9437a6e01b7e86770938007190e52df
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got histedit' fetch author info from Git configuration as a fallback
- Commit:
50e7a649ac62e04706162f1e9b7b37e7485fc7ca
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not require local author info during 'got rebase'
My commit to reset committer info during rebase was too strict
in some use cases. Even when simply forwarding a branch the rebase
operation could now fail if GOT_AUTHOR is not set.
To fix this, fall back on existing commiter information if no author
is configured. And try to obtain author info from Git config in case
GOT_AUTHOR is not set.
Problems reported by Mikhail.
- Commit:
598eac4331d322ab9e91ee6864c54845e3a6e86c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reset committer during rebase and histedit
ok op@
- Commit:
f26cc5f2126442207cd94f69d093f159445e8e20
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not forget to free(cwd) at the end of cmd_rebase() and cmd_histedit()
- Commit:
c8283a6b5ca94901ddccbd5043a68eb09420e1cc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix wrong error return in cmd_commit()
- Commit:
b7ced457451732add8f4107e469ced58fc8d4d4a
- From:
- Florian Obser <florian@narrans.de>
- Date:
We don't care about the length of the read line.
Found by llvm's scan-build (dead store).
OK stsp
- Commit:
c9917e65d9995cc47cf892e092d7344f52675579
- From:
- Florian Obser <florian@narrans.de>
- Date:
Dot not ignore error from got_object_id_str().
Found by llvm's scan-build (dead store).
OK stsp
- Commit:
79deadfa3f6b989f7a9df793f0f112464bef0f65
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo in cat_commit
otherwise prints the author instead of the committer
- Commit:
62b21d332b3a92a7f99022d68bc8fd98a4682d33
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got commit: add flag to specify the author
This adds a new flag, `got commit -A', that allows to specify the commit
author but retains the "committer" (which is obtained as usual via
GOT_AUTHOR, got.conf or git config.)
with lots of help from and ok stsp
- Commit:
cf208ddd0ee1b6c232ef38bc307e689bc2b4653b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix email address parsing
we were both too strict and too lose. To avoid breaking got object
parser (and to some extent ours too) we need to ensure that there aren't
any line feeds, extra < or > and no trailing gibberish. The '@' is not
actually required in the email.
various tweaks and ok stsp
- Commit:
f1e5aff40c5f42ab6fd83a2fb41ca0d10b3b21c9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
histedit: make sure mesg is only used after pick or edit
It doesn't really make sense to use mesg after a fold or drop, or after
another mesg. it currently "works" as intended, but the behaviour is
confusing and not useful, better abort the operation as it's probably
not what the user intended.
Suggested by and ok stsp@
- Commit:
d68f2c0e20f502d7bea2f0136527683f830b3d6c
- From:
- Josh Rickmar <jrick@zettaport.com>
- Date:
add signer_id option to got.conf(5)
Setting this option will cause 'got tag' to sign all created tags using
the SSH key, unless overridden by the -s flag.
ok stsp@
- Commit:
02a5c5d00338c9549f6a399391841bd8219d91cf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move 'got init' command to 'gotadmin init'
This functionality is better suited for gotadmin because it is
technically a server-side repository operation when we consider
the 'got' tool as the client-side tool.
I have plans to move 'got import' into gotadmin as well.
ok op@
- Commit:
1b2dedff6127800c1ef287be60c5b3a4612a3c44
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
include system headers required for got_date.h directly, not indirectly
- Commit:
ef98a369796fc222fed7184de02b28622b5b1770
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
got tag -V is like tag -l with verification, fix option-conflicts accordingly
- Commit:
78817826917980c893186ca523093b97061f40d5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add -v option to 'got tag' usage string