Commits
- Commit:
62d463cac1fd99c423acb07c0367c649724a2a9a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
indentation fixes
- Commit:
54eb00d5beb979ca755db29889d236201e53cd52
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
properly handle nonexistent remote repository names given to 'got fetch'
found by jrick
ok naddy
- Commit:
f0207f6a4f16fab481f483d0db43ed50ca670e7e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch to got_path_basename() in cmd_checkout()
ok millert
- Commit:
42a285e2ca79f0deefcf9e35135b87cf86003e3b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
unveil repositories read-write when adding tags with 'got tag'
- Commit:
6879ba4225a833ea466b3512329293abfd9bf33a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
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
- Commit:
f535bcd44604b1994b9d4fe351236dc1a69758d8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix 'bad path' error from 'got clone' by unveiling the repository path again
Problem found by jrick
- Commit:
9814e6a376df853a88deb889d68f178c803ad8ca
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
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
- Commit:
1367695b58142d73ad701f34f04fe45c4ad2782b
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
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
- Commit:
bfa12d5e80568029d33f5d0f2e9cee54bc20db27
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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
- Commit:
820059fa2d7c7e7a0c9523368dad51044a088bbc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
whitespace fixes (patch by jrick)
- Commit:
b8adfa5529205d58ab21c9c8fc76b50068ebbaa2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add "branch" keyword to got.conf which specifies a list of branches to fetch
ok tracey
- Commit:
b08a0ccd43bb6d5f5cc56ccbb1c5244affccf2a9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not pledge 'got integrate' in a PROFILE=1 build
found by jrick on freenode
- Commit:
04d9a9ecdab02fa65ffe5ade82da586e5442869e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
7c0b7f42f3ff191db04c3a8b01078649f1a70b6b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
refactor code which creates config files for 'got clone' using helper functions
- Commit:
a9c2d4c277afebe2aff309e7b43a32185fc37cd1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
2751fe645d77dcd3e68167c7d2c26bb9146996d2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
let 'got clone' try to connect to server before creating repository contents
- Commit:
521dbd351ce6ce206a649ef1f76e4804722a0f28
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
trim leading slashes from repository path written to got.conf (found by naddy)
- Commit:
48cae60d0ae734495d85aa8a8d9409e71cfe7d76
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
c47340daf7e078d5d04930146cb9307d94b09bc1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in cmd_checkout() handle basename(3) modifying its argument
ok naddy@
- Commit:
0429cd76586cecb81d322546ab686ce527eb8f83
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
fix typo in error message
- Commit:
59f86c768fa5ca12721c72172aa968062fceafea
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug memory leaks in error paths while collecting log messages
- Commit:
97972933210f224479bf2e8f44c4cb88a2dec393
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for errors from write(2) and close(2) while collecting log messages
- Commit:
50b0790ed9a28fced631f31e5b7ca76a9a610ea5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add per-worktree got.conf(5) file in the .got directory; ok millert
- Commit:
1601cb9fb1c61348022d15d2f34797672e2c3cc3
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use plain write() in place of dprintf() with a pre-formatted string
step-by-step guidance from millert; ok millert stsp
- Commit:
3168e5da215c7b442d231f40bfd61df067505d8b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
zap trailing tabs