aboutsummaryrefslogtreecommitdiff
path: root/git-remote-notmuch.c
AgeCommit message (Collapse)Author
2025-08-11cli/git-remote: add check for missing messagesDavid Bremner
In cases where a given 'export' both adds and deletes messages, we may not know what messages are actually missing until the end of processing. We thus do single pass of all remaining message-ids, and report any that are still missing at the end of the "export" operation.
2025-08-11cli/git-remote: handle message deletionsDavid Bremner
There are two main possibilities. One is explicit delete ('D' command in the stream from git fast-export) and one is files disappearing between commits. It is less clear the latter can happen in well formed sequence of commits, but it could result e.g. from manual changes to the repo.
2025-08-11cli/git-remote: add export commandDavid Bremner
Two (sub)features are stubbed out in this initial implementation: deleting messages (as opposed to tags), and missing messages. There are two corresponding tests marked as broken in T860-git-remote.sh. A third test passes with the stub, which is maybe not ideal, but at least it acts as a regression test.
2025-08-11cli/git-remote: add import commandDavid Bremner
The output in default.import is based on a modified version of Felipe's git-remote-nm with Blake2 hashing replaced by SHA1 (for portability). This enable fetch/pull/clone, so test that as well.
2025-08-11cli: start remote helper for git.David Bremner
This is closely based on git-remote-nm (in ruby) by Felipe Contreras. Initially just implement the commands 'capabilites' and 'list'. This isn't enough to do anything useful so start some unit tests. Testing of URL passing will be done after clone (import command) support is added.