Go to file
Chih-Hsuan Yen 07a4529278 pager: set $LESS only when missing
This matches the git behavior. From [1],

> When the `LESS` environment variable is unset, Git sets it to `FRX`
> (if `LESS` environment variable is set, Git does not change it at
> all).

The default $LESS is changed from FRSX to FRX since git 2.1.0 [2]. This
change also updates the default $LESS for repo.

[1] https://git-scm.com/docs/git-config#Documentation/git-config.txt-corepager
[2] b3275838d9

Bug: https://crbug.com/gerrit/16973
Change-Id: I64ccaa7b034fdb6a92c10025e47f5d07e85e6451
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/374894
Reviewed-by: Chih-Hsuan Yen <x5f4qvj3w3ge2tiq@chyen.cc>
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Chih-Hsuan Yen <x5f4qvj3w3ge2tiq@chyen.cc>
2023-05-26 14:39:09 +00:00
.github/workflows github: enable flake8 postsubmit testing 2022-12-09 14:32:29 +00:00
docs manifest: add support for revision in include 2023-05-05 03:40:28 +00:00
hooks commit-msg: Sync commit-msg from gerrit 3.6.1 2022-07-29 01:29:19 +00:00
man repo_trace: adjust formatting, update man page. 2022-11-14 23:46:06 +00:00
release Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
subcmds Add envar to replace shallow clones with partial 2023-05-25 22:37:04 +00:00
tests Parse OpenSSH versions with no SSH_EXTRAVERSION 2023-05-24 17:33:08 +00:00
.flake8 Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
.gitattributes Adds additional crlf clobber avoidance. 2016-06-22 08:36:45 +00:00
.gitignore Add parallelism to 'branches' command 2020-12-14 23:35:12 +00:00
.gitreview git-review: add config file 2021-11-15 01:39:36 +00:00
.mailmap Update .mailmap 2020-02-13 04:49:55 +00:00
.project Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pydevproject Leverage the next keyword from python 2.7 2018-12-19 11:06:35 -08:00
color.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
command.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
completion.bash bash-completion: complete projects with repo forall 2021-07-27 06:20:52 +00:00
editor.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
error.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
event_log.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
fetch.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
git_command.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
git_config.py [SyncAnalysisState] Preserve synctime µs 2023-04-27 20:19:34 +00:00
git_refs.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
git_ssh add license header to a few more files 2019-06-13 13:23:19 -04:00
git_superproject.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
git_trace2_event_log.py [git_trace2] Add logs for critical cmds 2023-05-17 18:06:14 +00:00
gitc_utils.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
hooks.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
LICENSE setup.py: add basic packaging files 2019-12-02 04:23:31 +00:00
main.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
manifest_xml.py Add envar to replace shallow clones with partial 2023-05-25 22:37:04 +00:00
MANIFEST.in setup.py: add basic packaging files 2019-12-02 04:23:31 +00:00
pager.py pager: set $LESS only when missing 2023-05-26 14:39:09 +00:00
platform_utils_win32.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
platform_utils.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
progress.py sync: Show number of running fetch jobs 2023-05-25 17:26:22 +00:00
project.py Add envar to replace shallow clones with partial 2023-05-25 22:37:04 +00:00
pyproject.toml Make black with line length 80 repo's code style 2023-03-20 20:37:24 +00:00
README.md Update bug tracking links 2023-02-01 22:57:36 +00:00
repo Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
repo_trace.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
requirements.json Drop support for Python 3.5 2021-06-03 11:34:17 +00:00
run_tests run_tests: Check flake8 2023-03-31 04:25:53 +00:00
run_tests.vpython3 run_tests: Check flake8 2023-03-31 04:25:53 +00:00
setup.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
ssh.py Parse OpenSSH versions with no SSH_EXTRAVERSION 2023-05-24 17:33:08 +00:00
SUBMITTING_PATCHES.md SUBMITTING_PATCHES: update with commit queue details 2023-05-11 19:27:57 +00:00
tox.ini run_tests: Check flake8 2023-03-31 04:25:53 +00:00
wrapper.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00

repo

Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.

Contact

Please use the repo-discuss mailing list or issue tracker for questions.

You can file a new bug report under the "repo" component.

Please do not e-mail individual developers for support. They do not have the bandwidth for it, and often times questions have already been asked on repo-discuss or bugs posted to the issue tracker. So please search those sites first.

Install

Many distros include repo, so you might be able to install from there.

# Debian/Ubuntu.
$ sudo apt-get install repo

# Gentoo.
$ sudo emerge dev-vcs/repo

You can install it manually as well as it's a single script.

$ mkdir -p ~/.bin
$ PATH="${HOME}/.bin:${PATH}"
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
$ chmod a+rx ~/.bin/repo