Commit Briefs

b6b86fd1b9 Thomas Adam

remove trailing whitespace; patch by Josiah Frentsos


b5c076278b Thomas Adam

fix overflow in blame callback

spotted by noticing gotwebd crashing on some blame requests. Diff from stsp@ with a fix from tracey@, I'm committing it only because he is short on time. ok stsp@


8b925c6ccd Thomas Adam

portable: add back sys/queue.h

Now that the handling of including sys/queue.h is better, there's no need to remove those lines from the source. Copy the location of those original sys/queue.h lines from upstream at the same line number, so as to avoid any conflicts in the future.


25ec70067d Thomas Adam

switch 'tog diff' and 'tog blame' to Myers diff for speed

Make the choice of diff algorithm configurable by diff API users. The got and gotweb programs keep using Patience diffs which are prettier than Myers. But tog should be as fast as possible since it is being used interactively. If performance of Patience diff gets improved later we can consider switching tog back over to it. ok tracey jamsek


9117a7b739 Thomas Adam

move remaining got_opentemp's out of blame. ok op@


19a6a6b5ee Thomas Adam

move got_opentempfd() out of lib/diff.c again

ok tracey



f4ae6ddb59 Thomas Adam

move got_opentempfd out of open_blob. ok stsp@


0c6f49baf2 Thomas Adam

build with -Wwrite-strings

Throwing this into the mix for a while, we can always get rid of it again if it becomes annoying. No objections from stsp@


1b4d350c1e Thomas Adam

clear gw_trans->pack_fds pointer in gotweb


e0fb2ce217 Thomas Adam

fix recent regression in gotweb for pack_fds


7cd528337b Thomas Adam

move got_opentempfd out of got_repo_open. ok stsp@

thanks for all the help massaging this diff


a0f32f336e Thomas Adam

move creation of tempfiles outside of lib/diff.c

ok tracey


ec242592d3 Thomas Adam

inline struct got_object_id in struct got_object_qid

Saves us from doing a malloc/free call for every item on the list. ok op@


a378df9ff9 Thomas Adam

fix typo in comment: navicate -> navigate


10f173fee1 Thomas Adam

pass an already open commit object to the blame callback

ok op@


945f922947 Thomas Adam

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@


d7c94b2be0 Thomas Adam

fix free() on uninitialized variable upon error in gw_output_file_blame()

ok op@


85ff1015c5 Thomas Adam

rm unused vars


fa8129f71e Thomas Adam

const-ify tables

ok thomas_adam millert


0526966e98 Thomas Adam

style


81135670fc Thomas Adam

unbreak gotweb index when pack files are missing


c56c5d8a20 Thomas Adam

add "e" (close-on-exec) flag to fopen(3) calls

suggested by millert ok thomas_adam


cc8021afc2 Thomas Adam

implement 'got diff -c' for diffing commits with optional filtering by path

Need for filtering by path sugggested by kn@ ok naddy@


dd038bc6ec Thomas Adam

portable: initial Linux compilation

This commit modifies the GoT main branch to be able to compile it under linux.