Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] JGit Client API

fredagen den 16 april 2010 19.25.06 skrev  Chris Aniszczyk:
> On Fri, Apr 16, 2010 at 10:13 AM, Christian Halstrick
> <christian.halstrick@xxxxxxxxx> wrote:
> > - introduction of classes representing the options of a git.git
> > command: commit(CommitOptions opt) where CommitOptions has setter for
> > msg, author, committer, amend,
> This is the way I would do it with some type of interface representing
> the commit options. Too many arguments are a sign that you should
> create this type of context object anyway.

I agree. Take a look at C Git though (not for the global
variables...) but a lot of options are common to many programs and we
could probably do something similar. I.e. the log api could take LogOptions
and DiffOptions and so on.

-- robin

Back to the top