Commit Briefs

a7472cb328 Stefan Sperling

check return value of RB_INSERT; ok + memleak fix by op@


bb6672b6ab Theo Buehler

make sure callers of got_object_idset_add() free data.


3d1a1e4cbc Stefan Sperling

fix a double-free in an error case of cmd_checkout()



20e420c8b1 Stefan Sperling

add a -q (quiet) option to 'gotadmin pack'


fbafdecfb2 Stefan Sperling

revert 03c03172 "drop a commit right away if it matches an excluded commit"

This change resulted in a full history walk even when no objects will be added to the pack file. Fix this regression by reverting the change.



1d765da334 Stefan Sperling

remove a pointless object-id dup/free dance in findtwixt()





ffd9dda732 Stefan Sperling

make 'got tag' unlock the work tree earlier when creating tags

The work tree was only held open in order to find its got.conf file since this file could contain a tagger name to use. Read the tagger name earlier. Once the tagger name is known we can close the work tree already.



a091f71abc Stefan Sperling

make 'got cat' not search for a work tree if the -r option is used

Fixes failures in our test suite if 'got tag -l | less' is used in the work tree while cmdline tests are running.


29e0594f3d Stefan Sperling

make gotadmin pack -x option work with tag arguments


67ba616121 Stefan Sperling

leave work tree in a usable state after 'got rebase' fails path-prefix checks

reported by naddy


9d34261edb Stefan Sperling

in load_object_ids(), process "their" commits and tags in the same loop

No functional change, the end result is the same.


820e446669 Stefan Sperling

fix typo in comment: navicate -> navigate


392891ce58 Stefan Sperling

pass an already open commit object to the blame callback

ok op@


a44927cc05 Stefan Sperling

stop relying on commit cache for good performance of got_object_id_by_path()

Instead of internally opening and closing the same commit object over and over again, require callers to pass an open commit object in. Avoids an inherent dependency on the commit object cache for reasonable performance. ok op@


c655fd934c Stefan Sperling

rename variables in got_path_strip() for clarity; ok op@


9d6cabd512 Omar Polo

got patch: allow to strip path components

Move some bits from the libexec helper to the main process so we know if the patch was generated by git or not and finally document the automatic stripping of a/ and b/ prefixes added by git-diff(1). ok stsp@


49c543a6fe Christian Weisgerber

use test(1) -eq and -ne to compare integers, and reduce quoting

This brings the rest of the regression test scripts in line with patch.sh.


fbbb53b90e Omar Polo

remove trailing whitespaces