Sebastian Martinez
bd6ba784b3
Improve binary detection
...
libgit2 optimizes around not loading the content, when there's no
content callbacks configured.
So we aren't able to get a clear answer from radicle-surf if a file in a
diff is a binary or not.
A simple way without doing additional API requests is to check if the
file type is a executable and if there are no hunks (since we don't get
any deltas in binaries), this is a strong
indicator for a binary.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-26 09:04:01 +02:00
Sebastian Martinez
ee9cb2b0d7
Clean up some unnecessary types
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-19 07:49:36 +02:00
Sebastian Martinez
217d8b2dd4
Add base diffChangeset schema and extend for other schemas
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-19 07:49:36 +02:00
Sebastian Martinez
ca6762fc95
Refactor commit and diff types, updates outdated diff types
...
- Adds support for modified moved files see https://github.com/radicle-dev/radicle-git/pull/141
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-09-19 07:49:36 +02:00
Sebastian Martinez
6a1137a024
Add parents property to CommitHeader type
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-08-14 11:33:00 +02:00
Sebastian Martinez
f971d777f2
Add missing moved and copied file operations to Changeset
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2022-11-17 17:50:19 +01:00
Rūdolfs Ošiņš
260cd4c144
Use object instead of strictObject for httpd schema checking
...
This way we can deploy back-end API changes that are backwards
compatible without breaking the UI.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-02 15:54:50 +02:00
Rūdolfs Ošiņš
c8c251fabd
Add httpd-client api library
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-04-11 15:31:08 +02:00