Commits
- Commit:
15c388a9fbe0ca9bd3fba71581e55dd5ad6d8c33
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for unlink(2) errors and don't try to unlink an already renamed file
ok op@
- Commit:
a06ca3f74892062294f3752ab15a9e5d7778a106
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for unlink(2) errors with the == -1 idiom, rather than != 0
ok op@
- Commit:
3d8e0c5ede1a5654397b63a9f483d875543527d5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid a pointless malloc/free in got_reflist_insert() in my previous fix
suggested by op@
- Commit:
7db2b0ddc68d7d2761c2c1b93fa9543431efde97
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
detect packed vs. on-disk reference collision when listing refs
ok op@
- Commit:
c3821befbed0b67d1b48a5cfa3aaa2e022c58430
- From:
- Florian Obser <florian@narrans.de>
- Date:
Prevent use-after-free of packed_refs_path in error path.
Found by llvm's scan-build.
OK stsp
- Commit:
58e31a80da4f4a9e10eaea148672190f35107a47
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
bb6672b6aba1cb45a10d52bec828e68379e9ad61
- From:
- Theo Buehler <tb@openbsd.org>
- Date:
make sure callers of got_object_idset_add() free data.
- Commit:
c0df59665de91324eeab1808c6c4e41343f21789
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
wrap overlong lines
- Commit:
00fe21f262ab567bb792120514b49b37236c5422
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add "e" (close-on-exec) flag to fopen(3) calls
suggested by millert
ok thomas_adam
- Commit:
428649877ce32ed472c8f2981ed805ec682732fd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fall back to comparison by name when refs have the same timestamp
This fixes an issue where some references were missing from lists of
references sorted by timestamp.
- Commit:
2d4975924ce5391b01ebd64d11499b485e19aace
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement got_reflist_sort() which sorts a ref list in-place
- Commit:
0309152af410dec50680c7a54ae55ba8ebd7fcae
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix uninitialized error from got_ref_cmp_by_commit_timestamp_descending()
- Commit:
7f66531d28466880142708210643464d65b9b63b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow sorting references by timestamp in tog
- Commit:
2c9e323b3e6b33240740c40bbef58acdae141b56
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
speed up 'got histedit -l' and 'got rebase -l'
Cache commit timestamps in struct got_reference in case we are sorting
references by commit timestamp. This avoids opening and closing commits
every time we compare two references with each other.
ok thomas.adam
- Commit:
9dd14b990bedd4bcdfc1b21cdb8034be103f574b
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
got_sha1_digest_to_str() writes to char *
ok stsp
- Commit:
abc59930d57a2d46c310e1b0c758c948554bc1af
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
indentation fixes
- Commit:
63e5aa5c34d2e70074f9c3a1f42b7b7188a785fa
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Expose got_ref_name_is_valid() for general purpose use.
This will be needed for a future 'got send' command.
- Commit:
cce2f4851ec199cbdf54fd82f3cc5ab38d5d68f3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose got_ref_resolve_symbolic() at the public library API
This will be needed by a future 'got send' command.
- Commit:
72acb3d8f4f1aa47fe21329180083cef02695490
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused 'repo' argument from got_reflist_insert()
- Commit:
3f338f0a096f8648ea0bb148ba5e4383d6434eaa
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
track the last modification time of references
- Commit:
5345b4c7e102ec42f81e1b9b229294a0774d9b40
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow lockfiles to be used in cases where we have a dir_fd and a relative path
- Commit:
779e1159b25b2aa115e6b42f51003b7e2fa7c06b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose the reflist_insert() helper function as got_reflist_insert()
This will be needed by 'gotadmin pack'.
- Commit:
57c181985845591d1fcd97be660feb8e256fd4be
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
validate reference names in open_ref()
This catches invalid reference names passed to 'got ref -l' and will also be
needed to validate reference names passed to a future 'gotadmin pack' command.
ok naddy@
- Commit:
af8a5c4afbbf686b427349764d9a2315d49f99ad
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug a memory leak in got_ref_list_free()
Code which inserts a reference into a reflist passes ownership of
this reference to the list. However, got_ref_list_free() never
closed such references, which resulted in a memory leak.
ok tracey
- Commit:
e600f1246e15fff13251ba9d299d74a24ae579c2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ensure that old commits remain referenced after rebase and histedit
Create automatic "backup" references which ensure that objects from
the pre-rebase or pre-histedit state remain in the repository.
A new -l option for 'got rebase' and 'got histedit' lists old commits.
This makes it easier to recover from botched rebase or histedit operations.
Removal of such objects currently requires got ref -d and git-gc.
This will be made more convenient in the future.
testing and ok jrick