commit | 3164d40e2247d42537aef8e80fa7e048e14bec9f | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@google.com> | Mon Nov 11 05:40:22 2019 -0500 |
committer | Mike Frysinger <vapier@google.com> | Tue Nov 12 03:44:39 2019 +0000 |
tree | 650cc33e3d5c4b39c3cc652e93495e47a170931b | |
parent | f4545126197781beb03bb0fd47e7f24ce5af6ca8 [diff] |
use open context managers in more places Use open() as a context manager to simplify the close logic and make the code easier to read & understand. This is also more Pythonic. Change-Id: I579d03cca86f99b2c6c6a1f557f6e5704e2515a7 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/244734 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Tested-by: Mike Frysinger <vapier@google.com>
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.