Skip to content

Plan your commits, go sleep

License

Notifications You must be signed in to change notification settings

agranjeon/gitplan

Repository files navigation

Gitplan

Somehow make it so you can plan your commit, to make your coworkers think you are working, while you are actually just sleeping

Installation

Either grab the latest release:

Linux

or build from source

go install

Requirements

  • git must be installed globally

Usage

Before committing, your branch must exist on remote (for now, we can't know from which branch your local branch was created)

  • commit This command creates a .diff file of the staged changes in .gitplan/commits and a .info file containing the date, branch and commit message. It also commits to the branch you're actually on, so you can keep working or doing other stuff without worrying about your changes.
git add *
gitplan commit -m "My sick commit" -date "+2hours"

date param accepts hours and minutes (I don't know why you would want to use seconds or days here)

The first time you use this command on a repository, it will ask for your private key file path and passphrase (because it might be needed to clone, fetch and push)

  • consume

That is the command you will launch before going to take a nap. It walks the .info files in .gitplan/commits every 20 seconds to find commits to commit and push

for some reasons (for now) you need to have a branch that exists with the same name on the remote

gitplan consume

When a commit is pushed, you receive a notification

  • status

Will return you a table of the commits that are yet to be pushed

$ gitplan status
+------------------+--------+------------------------+
| DATE             | BRANCH | MESSAGE                |
+------------------+--------+------------------------+
| 2021-11-23 13:38 | master | Add status command     |
| 2021-11-23 13:53 | master | Forgot to add the file |
+------------------+--------+------------------------+

About

Plan your commits, go sleep

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages