NiklasRosenstein / git-worklog

Migrated to https://gitlab.niklasrosenstein.com/NiklasRosenstein/python/nr.cli.git-worklog
MIT License
1 stars 1 forks source link

Option to store logs in a separate repository #1

Closed NiklasRosenstein closed 6 years ago

NiklasRosenstein commented 6 years ago

It would be nice if the work logs could, optionally, be stored in a separate repository instead of in the timetracking branch. That repository could then be configured with .gitconfig. In such a case, the logs should not be stored in a timetracking branch but instead in a branch that is named after the current project that you're working on. This should also be configured with .gitconfig.

Eg. you could configure the repository in your global ~/.gitconfig:

[timetracking]
  repository = ~/repos/timetracking

And then do a per-project

$ git config timetracking.project myprojectname