Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

git origin check support

Latest
Compare
Choose a tag to compare
@git-girl git-girl released this 17 May 08:52
· 5 commits to main since this release

With this release:

With this release on opening a project with project_open or project_edit on default ppp will check if it can read git origin, and if so run git fetch and checking for changes in origin that you don't have locally.
It uses git diff @{u} HEAD --name-only for this.

To avoid a git check you can supply the --no-git flag

Plans for next releases:
I'm a bit unsure where to go next, i do want to support running dev servers or any specified commands once opening a project.
The idea is to not stuff ppp full but rather encourage things like running the projects already defined dev command ( f.e. make dev) .
This wouldn't be enforced and i think it would be good to have a toml or json file for command execution.

The uncertainty comes from 1. jumping itself being a solved issue with so many plugins handling that 2. the git integration might be better architected as a zsh-hook. I don't see a case in which you don't want to do this. 3. the dev commands would need to shut down on exit and this complicates everything. also you need stuff to attach to the logs of a server f.e. this might be better done via tmux.

I will try multiple solutions and see what fits me best, but if anyone is reading this then I would be happy for feedback.