Contributed from https://github.com/voidus
- Fix (#28: The
run_fetcher_daemon
option was not taken into account. - [DEV] upgrading the dev environment to use nix flake and the latest nix distribution
- Fix (#27: Concurrency issue starting many
githudd
daemon that would never be cleaned up
- Fix (#21): use the system defined temp location as default for the PID and socket location rather than an hardcoded path that does not exist on all systems
- Feat: Do not display background server error/restart on STDERR by default. Only display it if the
env variable
GITHUD_DEBUG
is set toTRUE
- Fix: everything that was wrong with 3.0 :) Been running this version locally for a week without issues. Everything seems to recover properly on error and I get my background refresh
- Config: Re-enable
githudd
background fetcher by default
- Fix:
githudd
to restart from scratch if there is an issue with the pid file / background process - Fix:
githudd
to ignore failinggit fetch
return code - Fix:
githudd
recover on client/server exception
- Fix: Disable
githudd
by default. Seems that due to the socket communication I have made it unstable resulting ingithud
not displaying anything. Let's say thatgithudd
is Beta. I'll work on making it recover on failure
- Feat: Add a daemon called
githudd
that will continuously fetch the last git folder wheregithud
was executed. In a typical install wheregithud
is used in the prompt, that means the last git folder browsed. - Config: some new configuration has been added for the
githudd
daemon. The default values have been tested on Mac. You can find this new section in the.githudrc
file in this repo. The new parameters are also pasted below along with their default values.
# -------------------------------------------------------------------------------------------
# The following config controls the background fetcher daemon behavior called githudd
# -------------------------------------------------------------------------------------------
# run_fetcher_daemon=True
# githudd_sleep_seconds=30 # how long does the daemon sleep between cycles
# githudd_pid_file_path=/usr/local/var/run/githudd.pid
# githudd_socket_file_path=/usr/local/var/run/githudd.socket
#
# # Githudd logs can be verbose. They are here for debugging only. It is not advised that you
# # activate them
# githudd_log_file_path=/dev/null
- Feat: Add support for TMUX with
githud tmux
. You can now use tmux inside the status bar or the pane title of TMUX for example - Feat: Add support for no output formatting with
githud none
.
- Fix: Properly reset "normal" styling after displaying "Bold" characters (#13)
- When in detached, but on a commit that has a tag, display the tag name rather than the commit SHA
- BASH shell: properly escape invisible control characters so that the prompt length is computed properly
- in 1.3.1 I introduced
merge_branch_ignore_branches
to be able to deal with "false" branches like the famous gh-pages. It happens that if this branch was properly created as an orphan branch (git branch --orphan gh-pages
), then I can detect that it does not merge back into master and not show this part of the prompt automatically without people having to manually maintain exception. Thanks to Markus for pointing that out
- Minor breaking change: Removed the trailing space. If you need it, just put it in your prompt definition
- Do not override background color. Just act on foreground text color
- Merge branch count indicator will not include merge-commit anymore. This is actually redundant in all case. In fact, in a develop/master typical flow, when develop merges into master and develop and master are actually equal, if you count the merge-commit, you'll have the impression that there is a delta between the 2 branches
- Introduce
merge_branch_ignore_branches
config list that allows to not display the merge-branch part of the prompt for certain branch names
- Allow for a special "NoColor" configuration color to reset to the terminal foreground color
- NoColor is the default if the config file cannot be read
- Protect the prompt from possible color set before gitHUD is invoked
- Branch name has no color by default
- The default commit pull-push symbol is changed to a (hopefully) clearer '⥯'
- Remove dependency on a patched font in the default config
- Allow for partial prompt through configuration
- Configurable "no remote tracking branch" color
- Fix brew formula in gbataille/homebrew-gba which failed on some configs
- Configurable prompt parts (text and colors)
- Tech: refactoring to a writer and wide test coverage