git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] [EGit] Indroduce GitAction class
Date: Fri, 19 Jan 2007 22:18:08 -0500	[thread overview]
Message-ID: <20070120031808.GA11200@spearce.org> (raw)
In-Reply-To: <8b65902a0701191332n5055a28bi59600e35140582de@mail.gmail.com>

Guilhem Bonnefille <guilhem.bonnefille@gmail.com> wrote:
> I introduce GitAction as base class for all actions. It allows to
> disable the action menu item if the selection does not live in a Git
> controlled repository.
> 
> The current code is quite "gruik". It is mainly based on copy/paste
> from other plugins.
> 
> A better solution could be to avoid inserting EGit actions in menus if
> the selection does not live in a Git repo. (some plugin.xml hack)

Thanks for the patch!  I've applied it, and done some cleanup
behind.  I really appreciate that someone else is trying to help
egit move along.

A few thoughts:

 * Please format your code using the Eclipse formatter prior to
 a patch.  The project settings are configured to be the builtin
 Java Conventions that ship with Eclipse.  I rely *very* heavily on
 the Eclipse formatter being able to format my source code for me,
 so that I don't need to worry about whitespace, brace placement,
 line breaks, etc.  It saves me tons of time.

 * I noticed the copyright you sent in on one of your files was dated
 2006.  I applied it as is.  Are you sure you did not mean 2007?  ;-)

 * You did not send the patch inline or as an mbox.  This makes
 it much more difficult for me to apply the patch with `git am`.
 In the future can you please either submit the patch inline, or
 format using `git format-patch` and attach the *entire* output so
 that I have a proper Date/From/Subject/commit-message immediately
 available?

By the way, I have just added a SUBMITTING_PATCHES file at the top
level directory of the egit.git repository which covers some of
these topics.  I apologize for not shipping one earlier with the
project, as doing so may have eliminated some confusion.

-- 
Shawn.

      reply	other threads:[~2007-01-20  3:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-19 21:32 [PATCH] [EGit] Indroduce GitAction class Guilhem Bonnefille
2007-01-20  3:18 ` Shawn O. Pearce [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070120031808.GA11200@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=guilhem.bonnefille@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).