[arch-dev-public] [PATCH 2/7] Move to standardized code fmt - quotes

Dan McGee dpmcgee at gmail.com
Fri Mar 12 01:30:30 CET 2010


On Thu, Mar 11, 2010 at 4:30 PM, Daniel J Griffiths (Ghost1227)
<ghost1227 at archlinux.us> wrote:
> On 03/11/10 at 04:20pm, Aaron Griffin wrote:
>> On Thu, Mar 11, 2010 at 4:04 PM, Dan McGee <dpmcgee at gmail.com> wrote:
>> > On Thu, Mar 11, 2010 at 4:01 PM, Ghost1227 <ghost1227 at archlinux.us> wrote:
>> >> ---
>> >>  cron-jobs/adjust-permissions  |   10 ++++----
>> >>  cron-jobs/create-filelists    |   24 ++++++++++----------
>> >>  cron-jobs/devlist-mailer      |   10 ++++----
>> >>  cron-jobs/ftpdir-cleanup      |    2 +-
>> >>  cron-jobs/sourceballs         |   16 +++++++-------
>> >>  cron-jobs/sourceballs-cleanup |    6 ++--
>> >>  db-community                  |    2 +-
>> >>  db-community-testing          |    2 +-
>> >>  db-core                       |    2 +-
>> >>  db-extra                      |    2 +-
>> >>  db-functions                  |   20 +++++++++---------
>> >>  db-move                       |   16 +++++++-------
>> >>  db-remove                     |   16 +++++++-------
>> >>  db-testing                    |    2 +-
>> >>  db-update                     |   44 +++++++++++++++++++-------------------
>> >>  misc-scripts/ftpdir-cleanup   |   46 ++++++++++++++++++++--------------------
>> >>  misc-scripts/make-sourceball  |    8 +++---
>> >>  testing2community             |    2 +-
>> >>  testing2community-any         |    2 +-
>> >>  testing2community64           |    2 +-
>> >>  testing2core                  |    2 +-
>> >>  testing2core-any              |    2 +-
>> >>  testing2core64                |    2 +-
>> >>  testing2extra                 |    2 +-
>> >>  testing2extra-any             |    2 +-
>> >>  testing2extra64               |    2 +-
>> >>  testing2x                     |    6 ++--
>> >>  27 files changed, 126 insertions(+), 126 deletions(-)
>> >
>> > -1? Did I miss something here in our coding standards? This seems
>> > excessive because I know:
>> > * Someone will check in code with the wrong format
>> > * Someone will add a $var to a string and forget to change the quotes
>> > * Someone will remove a $var from a string and forget to change the quotes
>> >
>> > If $foobar vs. ${foobar} is next, oh boy...
>>
>> -1 from me too. At the very least, double quotes should be the norm,
>> single quotes the edge case
> Hmm... me thinks it might have been a good idea to do the code cleanup as
> the last commit... Woulda made reverting it much simpler.

This is another reason these type of patches are not necesarily a
great idea for collaborative projects- it makes it terribly hard for
anyone to rebase their work on top of. The much better way is to
slowly but surely fix things up as you go. That way anyone that cut a
branch can still get their work rebased on top of the master branch.
(Of course in the quotes case I still don't necessarily agree, as long
as you aren't switching every other line or something.)

-Dan


More information about the arch-dev-public mailing list