You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f0d4e72
Browse filesBrowse the repository at this point in the historyBrowse files
config: Add .git/.revupconfig and reorder precedence
Adds support for a per-checkout config at .git/.revupconfig with the
highest file precedence: .git/.revupconfig > repo/.revupconfig >
~/.revupconfig.
This allows users to specify custom overrides without needing to either
commit or ignore the changes. It also allows us to swap ~/.revupconfig
to now taking the lowest precedence. The original reason it was above
repo config was because we wanted a way for the user to override the
config provided by the repo. However now the config inside.git provides
that, and having ~/ be lowest precedence is more similar to the
functionality of other dotfiles (like gitconfig).
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ the case where you rebase then upload and will show you a diff with upstream fil
231
231
232
232
Revup is highly configurable using a standard config file format. Every flag is also a config option, so users can get the exact behavior they need.
233
233
234
-
Flags specified on the command line take precedence, followed by config in `~/.revupconfig`, followed by `.revupconfig`in the current repo.
234
+
Flags specified on the command line take precedence, followed by `.revupconfig` in the current repo's `.git` directory, followed by `.revupconfig`at the repo root, followed by `~/.revupconfig`.
235
235
236
236
## Repo config
237
237
@@ -258,6 +258,10 @@ For example, after getting used to the workflow, a user might not need the confi
258
258
skip_confirm = True
259
259
```
260
260
261
+
## Git-dir config
262
+
263
+
A `.revupconfig` placed inside the current repo's `.git` directory has the highest config-file precedence and is not tracked by git. This is useful for per-checkout overrides that should not be shared with other contributors.
0 commit comments