jcs
/amend
/amendments
/repo.c
Amendments on November 1, 2023
browser: Use a custom LDEF for file list to cross out deleted files
Also sort the list with deleted files at the bottom
Amendments on September 19, 2023
jcs made amendment
251
6 months ago
Amendments on May 4, 2023
repo+browser: Amendments are in order in array now
We're no longer putting newest amendments first, and after making
an amendment, it will be last in the list
browser: Speed up repo loads by only loading newest 100 amendments
Usually I just open a repo and want to diff+commit, but loading 500
amendments takes forever. Just load the newest 100 to show some
history, and add a list item that, when clicked, will load the full
history.
This is configurable by a new setting and can be 0 to disable.
Also, since we are sorting amendment IDs through bile, assume they're
already in order by date and avoid having to sort them all again
after processing.
Amendments on April 18, 2023
jcs made amendment
118
11 months ago
jcs made amendment
117
11 months ago
Amendments on April 17, 2023
repo: Make repo_init a bit faster
Don't count the ids and then fetch every nth one, just fetch the ids
with bile_sorted_ids_by_type.
Avoid some zeroing of things we're just going to overwrite
completely.
Also make temporary filenames unique, in case a previous run died
during diff for some reason.
Amendments on February 6, 2023
*: Lots of little fixes and dead variable removal
Found by cppcheck and scan-build
Amendments on November 10, 2022
repo: Provide some detailed progress while opening repos
This can take a while, so entertain the user while we work.
browser: Tweak menu language, fix bug in amendment exporting
We were passing a NULL pointer to SFPutFile instead of an empty
Pascal string, which has bad results on System 7. Now we will
supply "amendment_##.diff" as the default filename.
Also rename exporting functions to export an amendment instead of
a patch. The patch utility applies a diff, not a patch. But we're
exporting the whole amendment anyway.
Amendments on September 12, 2022
jcs made amendment
101
about 1 year ago
Amendments on September 6, 2022
jcs made amendment
97
about 1 year ago
Amendments on August 31, 2022
util: Move strlcat, strlcpy, strndup, and snprintf here
This lets us build with the standard THINK C ANSI library.
Also make malloc map dynamic to avoid a huge data segment.
Amendments on August 18, 2022
jcs made amendment
92
about 1 year ago
Amendments on August 17, 2022
repo: Factor out amendment marshalling
I wish I could use bile's marshalling for this, but the current
on-disk format of things is weird in Amend and would require a
database upgrade to convert to bile's way of storing variable-length
fields.
Start on renaming commit to amendment.
Amendments on August 16, 2022
jcs made amendment
83
about 1 year ago
Amendments on June 15, 2022
jcs made amendment
81
about 1 year ago
repo: Limit filename length when creating temporary files
Files can be 31 characters long, so appending " (Amend tmp)" to a
long filename can put us over that limit. Work in a Str31 and put
our "[tmp] " and "[deleted] " labels at the beginning so we don't
end up overwriting the existing file if the filename is already 31
characters long.
Check error result of getpath calls as well.
jcs made amendment
78
about 1 year ago
jcs made amendment
74
about 1 year ago