You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do both work and non-work things on my machine, for work I'll be adding the lolcommits images directly to my work dropbox folder and then creating a post commit hook to update the commit to have a link to the dropboxed image. But personal repos need not have this flow and can just go into ~./lolcommits
The text was updated successfully, but these errors were encountered:
So this is actually possible right now, it's just not very obvious how to do it, since we do not have a command line option flag for the LOLCOMMITS_DIR setting.
After enabling lolcommits in both projects, do the following for the project you want to have lolcommits in Dropbox;
cd /your/git/repo
Edit the git commit hook that exists at .git/hooks/post-commit and change the line that starts with lolcommits --capture to:
LOLCOMMITS_DIR="/full/path/to/your/dropbox/directory" lolcommits --capture
# obviously change this path to your own dir
Thats it! All future captures will be saved to a directory at /full/path/to/your/dropbox/directory/repo-folder-name/ (this directory will be auto-created if it does not exist).
Bear in mind, when running the lolcommits commands directly in the console, you will NOT have this env var set, but you can precede any commands you run with LOLCOMMITS_DIR="/full/path/to/your/dropbox/directory" e.g.
I've tagged this issue as an 'enhancement' for now. In the future we could rebuild the options/config code to have a hierarchy of global and project specific options or allow a flag to be set for the LOLCOMMITS_DIR option. Until then you can try the approach above.
I do both work and non-work things on my machine, for work I'll be adding the lolcommits images directly to my work dropbox folder and then creating a post commit hook to update the commit to have a link to the dropboxed image. But personal repos need not have this flow and can just go into ~./lolcommits
The text was updated successfully, but these errors were encountered: