17 Commits

Author SHA1 Message Date
Bo Anderson
fc7c3c923a cmd/update-reset: fix handling of multiple relative directories 2020-08-19 12:32:46 +01:00
Shaun Jackman
b4fc3ead1e update-reset: Use the default branch origin/HEAD
Use the default branch of the repo, origin/HEAD.
2020-06-17 17:26:15 -07:00
Shaun Jackman
b5584fc035 update: Update the symbolic ref origin/HEAD 2020-06-16 23:20:04 -07:00
EricFromCanada
0242084929 shell commands: colourize messages 2019-11-21 16:18:46 -05:00
EricFromCanada
b4303cd983 manpages: fix command & option descriptions 2019-08-20 09:03:33 -04:00
EricFromCanada
6340792f78 manpages: output formatting fixes 2019-08-20 08:28:35 -04:00
Mike McQuaid
4101bfda81
update-reset: avoid hanging on shallow-since.
For some reason this seems to hang when there's been no commits since
the latest tag. Not a problem in `brew update`.
2019-02-02 18:34:44 +01:00
Mike McQuaid
2b285f23c2
update-reset: improve --help formatting. 2019-01-30 21:38:45 +00:00
Mike McQuaid
06a66e254e
update-reset: fix Bash syntax.
This isn't valid syntax for a Bash array.
2018-10-08 18:41:46 +01:00
Mike McQuaid
4feb851279
Fix brew style shellcheck warnings. 2018-10-07 22:08:59 +01:00
Mike McQuaid
3063b7fade
update-reset: allow specifying repositories.
This makes it easier to use this in e.g. CI to quickly reset various
repositories to their upstream versions.
2018-09-18 21:14:21 +01:00
Markus Reiter
bdc2458c15 Always fetch at least the latest tag. 2018-08-11 00:46:29 +02:00
ilovezfs
17f80a44e6
Revert "Use Homebrew's gitconfig for various commands" 2018-01-15 07:30:56 +00:00
Mike McQuaid
228cbd81c9 Use Homebrew's gitconfig for various commands
Git is a transport and storage mechanism for us so we don't want to
allow arbitrary customisation of this due to user issues e.g. #3664
and #3561.

Fixes #3664.
2018-01-11 20:40:59 +00:00
Mike McQuaid
6114f48d5d Unhide readall and update-reset from manpage.
These are both tools that end-users can find useful on occasion so it
doesn't make sense to hide them.
2017-10-26 16:14:14 +01:00
Mike McQuaid
3c91f5858a update-reset: checkout with --force.
Otherwise it won't overwrite unmerged changes.
2017-01-26 16:29:39 +00:00
Mike McQuaid
d21f6954b6 update-reset: add new command.
Add new `brew update-reset` command to provide a helpful troubleshooting
fallback to fetch and reset all repositories. This could have lived in
`brew update` but it makes sense to avoid the complexity of sharing
logic between these scripts and keeping this one simpler.
2016-12-18 15:25:18 -08:00