Commits
- Commit:
93f8a3371abdcbfdc9e411ff44942acb0198ca47
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
tweak implementation of separate send {} and fetch {} conf blocks
Tweak man page.
Factor out repeated code in if/else branches in send_gotconfig_remotes().
ok stsp@
- Commit:
f08eaca092150217800d58a98ee47b078ef8689b
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
reintroduce allowing empty fetch and send blocks with correct grammar. ok stsp@
- Commit:
912a3f7945204384e4aa755c41dd4e89a855ef38
- From:
- Jasper Lievisse Adriaanse <j@jasper.la>
- Date:
tog: add support for navigating to first/last item of log and diff views
The keybindings that we settled on are Home, Ctrl-u and g to go to the
first item and End, G to go to the last. This resembles those commonly
found elsewhere, eg vi/less.
discussed with and ok stsp
- Commit:
6480c871c8f9ffdce90c10e7a7313e1187de019a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
provide separate send {} and fetch {} configuration blocks in got.conf
Feature requested by naddy.
ok naddy, who also suggested some tweaks that will arrive shortly
- Commit:
e385fc421f331989f2e6518465e5ead42e5a0618
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use gmtime_r(3) instead of localtime_r(3) to display time in UTC as intended
Problem noticed by naddy due to failing regress tests at midnight, and then
analyzed with additional help from millert.
ok naddy
- Commit:
92952c0ecd960182cd5822e21126351bff23ad61
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
stop allowing empty send {} or fetch {} blocks; yacc complained about grammar
yacc has been complaining about "shift/reduce conflicts" since
commit 16c4be8c1cab9456f9dd0468c27f8ab73235737e
Revert that change for now. Not sure how it can be done properly.
In any case, allowing empty config blocks is not very important.
- Commit:
7c84ef0790275b20085c4f2f5d6543da4fa9cb27
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reject port number zero
- Commit:
f1cacac799e48da059d50c727b25d240483bed12
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
validate non-optional settings in send {} and fetch {} config blocks.
- Commit:
aaf30ee7d7d84dcb4161aea893265400f9f19c13
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename variables to avoid too much repetition of the term 'repo'
- Commit:
5de743f8fddcaaf2912ffc92dce239aa6227d6d0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix seek to incorrect offset in the delta base when creating deltas
The stretchblk() function needs to compare data located after the block
which has just been matched. However, upon entry it was resetting the
file pointer of the delta base to the beginning(!) of the block.
The other file is correctly positioned after the block.
In many cases the data won't match and stretchblk() will not stretch
the matched block. But when the data did happen to match this resulted
in a bogus delta, and wrong file contents when the delta was applied.
Fix this by setting the delta base file pointer to end of the block.
Problem reported by naddy after our server refused a pack file which
was sent by 'got send'. I could reproduce the issue by running the
'gotadmin pack' command on a copy of naddy's repository.
ok naddy
- Commit:
535e07c7d678cfc4a2b6ad61f72c36e0a46e5111
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
make realloc_ids() malloc-like and do not overallocate
Let realloc_ids() take as argument the number of entries to allocate.
Do not allocate an extra chunk.
ok stsp
- Commit:
a96621150027f46d946238e99c8236a06f79f0da
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
add missing "return 1" to failure handling in the regress scripts
ok stsp@
- Commit:
8f2a2f4f1cea3d391fbf62e7507dd233cad10d99
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
drop realloc_ids() initialization calls, one of which had a typo
realloc_ids() is called again in the loops that assign to the ID arrays,
before the first assignment.
ok stsp
- Commit:
43e4eb1bf2ab96fb4ea1fb53f993913df354db94
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Add got(1) command tab-completion for ksh(1) to EXAMPLES section.
Suggested by Clint Pachl, thanks!
- Commit:
27b75514d9b1c8e9f188ef9c483760647a8c1b72
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not send a pack file when 'got send' is only deleting branches
The git protocol spec says the client MUST NOT send a pack file
if the only command used is 'delete'.
Fixes 'got send -d' against Github's server which closed the session
upon receiving the empty pack file we sent. This problem wasn't caught
by regression tests since git-daemon does accept an empty pack file.
Problem reported by jrick.
- Commit:
2ae2891d0e4f8e66706be6eb6394c199f18b7691
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove github capabilities workaround from got-send-pack, it is not needed
This workaround was inherited from git9, which claims that Github did
not send capabilities. Protocol traces show that Github's server does
in fact advertise its capabilities. Git protocol capabilities are hidden
behind a NUL byte in the middle of the first refline sent by the server.
This makes them easy to miss when treating a refline as a C string.
I guess this is why Ori concluded that Github didn't send any capabilities.
Or perhaps Github has been fixed since.
- Commit:
26ac815fc44811dc1fa663baa02c1a65836dd649
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
remove unused name variables, noticed by naddy@
- Commit:
0ff2bf469bd8c4cf24498832b2937041076a7d7f
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
clean up weird grammar. not sure what i was thinking.
- Commit:
16c4be8c1cab9456f9dd0468c27f8ab73235737e
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
fix to allow empty send and fetch blocks, ok stsp@
- Commit:
cfd923335bc72b12508df8bafe2f19ea43ddd4ad
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
add send and fetch plumbing to parser for got.conf
This is the beginning of support for naddy's suggestion to break this out
similar to git. More code to come from stsp.
ok stsp@
- Commit:
2f1457c6ccfe722888511926c09af843da3bee0d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow deletion of refs/remotes/ branches with got branch -d
Also, make requirements for branch name arguments more flexible.
Absolute reference names are now accepted.
ok naddy@
- Commit:
a099809f2873564368fcd20d3d7be32ce4a5bc12
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
more manual page updates following the introduction of 'got send'
- Commit:
93a300b296848449897d95643acc8a689b0480b1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
small man page spelling fixes
- Commit:
4408b20f8eddc1e1e4f3c865b8b59895590c0778
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
update the TODO list
- Commit:
fd44090b628aa7213949d0e8bcc696bf651aaa91
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tweak the man page section about 'got send'
In particular, attempt to describe the -f option better.