Commits
- 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
- Commit:
153d5e5853a81c12e6cca6d33811d97ab94768bb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add option-conflict handling for 'got tag' -s and -V options
- Commit:
ca61cecaa7d978cae3b4292c2f16001a71e77ec6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add -V option to 'got tag' usage string, and replace underscore with a hyphen
- Commit:
91d845ad5d8f8897e51d3f9233a9ea3e89fee80d
- From:
- Josh Rickmar <jrick@zettaport.com>
- Date:
fix tag signing when the key file does not exist
This should fail without creating any tag. Before, ssh-keygen(1)
would print an error to stderr, but got would create an unsigned tag.
ok op@
- Commit:
26e6f38e73535ec12ae2ba9e4f78cd6f41b14c63
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got.conf(5) mirror-references to mirror_references for consistency
Existing configuration files will keep working for now since the old name
with dashes is still recognized by the config parser.
- Commit:
f1bf60d10a22f5990303b68967a6cbffab2c5f04
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got.conf(5) fetch-all-branches to fetch_all_branches for consistency
Existing configuration files will keep working for now since the old name
with dashes is still recognized by the config parser.