AmendHub

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
jcs made amendment 253 6 months ago

Amendments on September 19, 2023

bile+repo: Faster sorts

jcs made amendment 251 7 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
jcs made amendment 250 about 1 year ago

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.
jcs made amendment 249 about 1 year ago

Amendments on April 18, 2023

repo: Set cursor to watch while we're loading a repo

jcs made amendment 118 about 1 year 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.
jcs made amendment 112 about 1 year ago

Amendments on February 6, 2023

*: Lots of little fixes and dead variable removal

Found by cppcheck and scan-build
jcs made amendment 110 about 1 year ago

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.
jcs made amendment 108 about 1 year ago

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.
jcs made amendment 107 about 1 year ago

Amendments on September 12, 2022

util: SFGetFile and SFPutFile have different dialog dimensions

Why, Apple?
jcs made amendment 101 about 1 year ago

Amendments on September 6, 2022

util: Add a mechanism for centering SF{Get,Put}File dialogs

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.
jcs made amendment 93 about 1 year ago

Amendments on August 18, 2022


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.
jcs made amendment 87 about 1 year ago

Amendments on August 16, 2022

*: Use new focusable API

jcs made amendment 83 about 1 year ago

Amendments on June 15, 2022

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 80 about 1 year ago

repo: Provide some progress during commit

jcs made amendment 74 about 1 year ago