Skip to content

git-annex: views for annex files#22

Merged
kousu merged 1 commit intogit-annexfrom
git-annex-views
Nov 27, 2022
Merged

git-annex: views for annex files#22
kousu merged 1 commit intogit-annexfrom
git-annex-views

Conversation

@kousu
Copy link

@kousu kousu commented Nov 27, 2022

This updates the repo index/file view endpoints so annex files match the way LFS files are rendered, making annexed files accessible via the web instead of being black boxes only accessible by git clone.

Screenshots

TODO

- show "Stored with Git Annex" on the view page
- show content's size (instead of the pointer's)
- hide annex-symlinks (LFS files never render with that quirk)
- use /media instead of the /src link for the download link (as LFS files do)

To reduce future merge conflicts, the patch tries not to restructure
the code, but instead just pastes in an extra case. But there are
obvious ways the code could be slimmed and factored; if upstream
eventually accepts git-annex as a feature, that should probably happen.

This adds tests. Especially, it adds .md, .txt, and .rst, .markdown
files to the test fixture, git-annex-smudge(1)ing the first two and
annex-symlinking the latter two, to make sure the UI detects it should
dig out and display their content, as it does for LFS-stored text files.
@kousu kousu changed the title Git annex views git-annex: views for annex files Nov 27, 2022
@kousu kousu merged this pull request into git-annex Nov 27, 2022
@kousu kousu deleted the git-annex-views branch November 27, 2022 07:13
@kousu kousu mentioned this pull request Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant