Commit Briefs

3818e3c42c Christian Weisgerber

convert all remaining instances of chmod(2) to fchmod(2)

ok stsp


1367695b58 Christian Weisgerber

fix potential type mismatches between format specifiers and arguments

Cast printf arguments of type time_t and off_t to long long to match the %lld format specifier on platforms where this might not be the case. In parse.y, switch the number variable to long long because all its interactions are with that type anyway. ok millert stsp


0a22ca1a5a Stefan Sperling

make 'got histedit' collapse folded add+delete operations into a no-op

If a merged commit wants to delete a locally added file, and this locally added file matches the content which was deleted in the commit being merged, we can go ahead with the deletion because there is no risk of data loss. fixes the histedit problem reported by jrick on freenode



3d9a4ec407 Stefan Sperling

add symlink support to 'got commit'


7aadece8bf Stefan Sperling

allow creation of commits which carry unmodified submodule tree entries along

approach suggested by ori@ and matches how git9 behaves ok semarie@ (who can now work with Rust-related Git repos containing submodules)



f7b97ccb29 Stefan Sperling

normalize tree entry modes to 0100644 or 0100755 when writing tree objects

semarie@ reported an error from go-git used by Cirrus CI: "57243613255d758e15b0f5ae1c960b970f0435f8: malformed mode (0100640)!" 'git fsck' has no problem with mode 0100640. But writing just the two most commonly used file modes should provide the best compatibility.


2c98ee284c Stefan Sperling

NAME_MAX does not account for a terminating NUL


56e0773df7 Stefan Sperling

convert tree entries from SIMPLEQ to an array



8e7bd50a82 Stefan Sperling

initial implementation of 'got tag' command



6af1ccbdf6 Stefan Sperling

sort tree object entries the way git likes it


3ce1b84566 Stefan Sperling

initial 'got import' implementation


10796104a1 Stefan Sperling

unsigned char casts for isspace()


787c8eb6b2 Stefan Sperling

fix extra whitespace in rebased log messages

Trim leading and trailing whitespace from log messages when creating commits. Fixes a rebase issue but should be a good idea in general.


638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


656b1f76d3 joshua stein

while (1) -> for (;;)


230a42bdc6 joshua stein

got_error_from_errno -> got_error_prefix_errno

also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)


324d37e7c7 Stefan Sperling

make got path APIs available to library consumers


de18fc635c Stefan Sperling

write commit objects


51c32763c2 Stefan Sperling

fix bogus sha1 calculation in got_object_tree_create()


76f564d51b Stefan Sperling

rename create_loose_object() to create_object_file()


4be2a0b433 Stefan Sperling

eliminate extra memcpy in got_object_{blob,tree}_create()