<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/color.py, branch v2.11</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.11</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.11'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2020-02-12T06:36:40+00:00</updated>
<entry>
<title>Fix blank line issues reported by flake8</title>
<updated>2020-02-12T06:36:40+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>dpursehouse@collab.net</email>
</author>
<published>2020-02-12T06:20:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=819827a42ddb364f98c3a1a7eae2536dc54bc4cc'/>
<id>urn:sha1:819827a42ddb364f98c3a1a7eae2536dc54bc4cc</id>
<content type='text'>
- E301 expected 1 blank line
- E302 expected 2 blank lines
- E303 too many blank lines
- E305 expected 2 blank lines after class or function definition
- E306 expected 1 blank line before a nested definition

Fixed automatically with autopep8:

  git ls-files | grep py$ | xargs autopep8 --in-place \
    --select E301,E302,E303,E305,E306

Manually fix issues in project.py caused by misuse of block comments.

Change-Id: Iee840fcaff48aae504ddac9c3e76d2acd484f6a9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254599
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
</content>
</entry>
<entry>
<title>set default file encoding to utf-8</title>
<updated>2019-06-13T14:30:52+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-06-13T06:30:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=f601376e13e6beca7ab8d660e00d6c14714f305f'/>
<id>urn:sha1:f601376e13e6beca7ab8d660e00d6c14714f305f</id>
<content type='text'>
There's no reason to support any other encoding in these files.
This only affects the files themselves and not streams they open.

Bug: https://crbug.com/gerrit/10418
Change-Id: I053cb40cd3666ce5c8a0689b9dd938f24ca765bf
</content>
</entry>
<entry>
<title>Pylint and PEP8 fixes for color.py</title>
<updated>2015-03-28T21:12:27+00:00</updated>
<author>
<name>Anthony King</name>
<email>anthonydking@slimroms.net</email>
</author>
<published>2015-03-28T21:10:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=bdf7ed230127084a684826868d64b502e4bd6760'/>
<id>urn:sha1:bdf7ed230127084a684826868d64b502e4bd6760</id>
<content type='text'>
Change-Id: I1a676e25957a7b5dd800d2585a2ec7fe75295668
</content>
</entry>
<entry>
<title>add a global --color option</title>
<updated>2014-12-30T23:50:05+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2014-12-22T20:17:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=902665bce668a58996de657a65c5ae3002a8810b'/>
<id>urn:sha1:902665bce668a58996de657a65c5ae3002a8810b</id>
<content type='text'>
If you want to turn off colors for commands, you have to manually adjust
the git config settings (in various locations).  If you're writing scripts
though, you often don't want to modify those locations.  Add a commandline
option to explicitly control things.

The default behavior is unchanged -- we still scan the config files.

Change-Id: I54a3fd8e1918bac180aadd7c7d3004f069b02522
</content>
</entry>
<entry>
<title>Add nofmt_printer to color.py</title>
<updated>2013-02-26T07:04:55+00:00</updated>
<author>
<name>Olof Johansson</name>
<email>olof.johansson@sonymobile.com</email>
</author>
<published>2013-02-26T06:36:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=b75415075c00bb17e14c5666a380b7e940db8c84'/>
<id>urn:sha1:b75415075c00bb17e14c5666a380b7e940db8c84</id>
<content type='text'>
The current printer always expands on the arguments which is a problem
for strings containing %.

Instead of forcing manual string expansion before printing allow for a
no format printer option which simply accepts and prints the string.

Part of fix for issue #131:
http://code.google.com/p/git-repo/issues/detail?id=131

Change-Id: I08ef94b9c4ddab58ac12d2bd32ebd2c413e4f83b
</content>
</entry>
<entry>
<title>Fix inconsistent indentation</title>
<updated>2012-11-14T02:38:57+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-11-14T02:36:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=c1b86a232383748811c6faf17f364e63e10f7dd4'/>
<id>urn:sha1:c1b86a232383748811c6faf17f364e63e10f7dd4</id>
<content type='text'>
The repo coding style is to indent at 2 characters, but there are
many places where this is not followed.

Enable pylint warning "W0311: Bad indentation" and make sure all
indentation is at multiples of 2 characters.

Change-Id: I68f0f64470789ce2429ab11104d15d380a63e6a8
</content>
</entry>
<entry>
<title>Even more coding style cleanup</title>
<updated>2012-10-30T01:28:20+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-10-25T03:23:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=1d947b30342163b723c96db563967323535fef45'/>
<id>urn:sha1:1d947b30342163b723c96db563967323535fef45</id>
<content type='text'>
Fixing some more pylint warnings:

W1401: Anomalous backslash in string
W0623: Redefining name 'name' from outer scope
W0702: No exception type(s) specified
E0102: name: function already defined line n

Change-Id: I5afcdb4771ce210390a79981937806e30900a93c
</content>
</entry>
<entry>
<title>Coding style cleanup</title>
<updated>2012-10-09T10:45:30+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-09-24T03:15:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8a68ff96057ec58e524a3e41a2d8dca7b5d016bc'/>
<id>urn:sha1:8a68ff96057ec58e524a3e41a2d8dca7b5d016bc</id>
<content type='text'>
Fix the following issues reported by pylint:

C0321: More than one statement on a single line
W0622: Redefining built-in 'name'
W0612: Unused variable 'name'
W0613: Unused argument 'name'
W0102: Dangerous default value 'value' as argument
W0105: String statement has no effect

Also fixed a few cases of inconsistent indentation.

Change-Id: Ie0db839e7c57d576cff12d8c055fe87030d00744
</content>
</entry>
<entry>
<title>Remove unused imports</title>
<updated>2012-08-23T10:15:26+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-08-22T01:46:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=e15c65abc25cd1d5d77ec6815a3c011b9f57ddac'/>
<id>urn:sha1:e15c65abc25cd1d5d77ec6815a3c011b9f57ddac</id>
<content type='text'>
There are several imports that are not used.  Remove them.

Change-Id: I2ac3be66827bd68d3faedcef7d6bbf30ea01d3f2
</content>
</entry>
<entry>
<title>Add -p to `repo forall` to improve output formatting</title>
<updated>2009-04-18T20:49:13+00:00</updated>
<author>
<name>Shawn O. Pearce</name>
<email>sop@google.com</email>
</author>
<published>2009-04-18T20:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=db45da12089bf131579d100ff7990cbc18d07325'/>
<id>urn:sha1:db45da12089bf131579d100ff7990cbc18d07325</id>
<content type='text'>
When trying to read log output from many projects at once it can
be difficult to make sense of which messages came from where.

For many professional developers it is common to want to view the
last week's worth of your work, so you can write a weekly summary
of your activity for your status report.

This is easier with the new -p option:

  repo forall -pc git log --reverse --since=1.week.ago --author=sop

produces a report of all commits written by me in the last week,
formatted in a paged output display, with headers inserted in
front of each project's output.

Where this can be even more useful is with git log's pickaxe,
e.g. now we can use:

  repo forall -pc git log -Sbar v1.0..v1.1

to locate all additions or removals of the symbol 'bar' since v1.0,
up to and including v1.1.  Before displaying the matching commits in
a project, a project header is shown, giving the user some context
information for the matching results.

Signed-off-by: Shawn O. Pearce &lt;sop@google.com&gt;
</content>
</entry>
</feed>
