Commits


rename commit to commit_id in gw_trans and fix setting gw_trans->commit_id from gw_index leave comment explaining this


initialize author and committer to prevent double free on error


where we can, use a single open repo object to reduce opening and closing a repo


further simplify objects carries around in struct gw_header


simplify getting commit header info and open and close in scope discussed at length with stsp


add a test which ensures that 'got rebase' trims empty dirs from disk


simplify gw_get_repo_age() and close several resource leaks


no need to dup refname in gw_output_repo_heads()


check for any symbolic refs and skip them, not just HEAD


refname in gw_get_repo_age() doesn't need to be duplicated; simplify


there is no need to strdup() gw_trans->headref


add missing error checks in gw_get_header()


gotweb: decorate only the branch's tip commit ID with "(branch)"; add XXX


gw_free_headers() frees just one gw_header so rename it to gw_free_header()


make gotweb's summary page display which branch the commit briefs belong to


ensure we close the final checked dir in gw_load_got_path and use better error message


catch invalid actions and git paths earlier in querystring parsing


set gw_err in correct code path


remove free(refs_str) that was reintroduced with rebase


fixup initial action querystring error and use the err.tmpl finally


jump to error handling consistently in gw_load_got_path()


eliminate unnecessary strdup() via an intermediate variable in gw_get_commit()


remove unneeded asprintf and clean up a couple of lines


remove all usage of strdup("") and simply check for NULL instead


avoid strdup on author and committer