Replies: 1 comment
-
Correct, we don't support any hooks yet. The hook we seem most likely to add first is one that would run before
There isn't a better way; the commit ID is the best way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a jj repository in which a PDF document is generated each time the source changes. Let's call it
doc.pdf
. I want something like a jj hook which creates a symlink nameddoc-version-<hash>.pdf
, where<hash>
is the immutable git commit ID of the current working copy. This link will have to be deleted when the next snapshot is made, so that there is only one versioned filename referring to this document at any given time.Unless I've missed something, jj does not have hooks at present.
How might this be implemented?
Is there a better way of finding the git ID, than running
jj log
?Is there a better way of keeping track of "the version of the source that generated the file that I gave to Fred"?
[The repo already uses
just
,mprocs
andtypst watch
, in case that helps.]Beta Was this translation helpful? Give feedback.
All reactions