Skip to content

More levels of configuration #157

Open

Description

@shooftie

Basically, exactly what the title says:

% cd /Users/me/dev && ls
main     test-worktree

% cd test-worktree

% git-graph model git-flow
Branching model set to 'git-flow'%  # <-- FYI, log is missing a \n so prompt char doesn't clear output

% git-graph model
git-flow%

% cd /Users/me/dev/

% find . -name git-graph.toml
./main/.git/worktrees/test-worktree/git-graph.toml  # <-- config is left in git's worktree dir

Is there any reason why there is no global/project/directory level configs? Doing so would mean that the config could easily be shared amongst the team or set once for all.

  • $XDG_CONFIG_HOME/git-graph/git-graph.toml
  • ~/.config/git-graph/git-graph.toml
  • ~/.git-graph.toml
  • <repo root>/.git-graph.toml

Activity

  1. peso commented on Oct 15, 2026

    @peso
    Collaborator

    Currently git-graph has a repo level config file and a user level model list.
    Making that more systematic, and adding system level config would be a nice improvement.

    Please note that this has to work cross-platform (Linux, Mac, Windows)

  2. changed the title [-]Setting default model choice when on a worktree adds git-graph.toml to .git/worktrees[/-] [+]More levels of configuration[/+] on Oct 15, 2026
  3. added theissue type on Oct 15, 2026
  4. added this to the 1.0 milestone on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions