From: Jakub Narebski <jnareb@gmail.com>
To: Petr Baudis <pasky@suse.cz>
Cc: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>,
git@vger.kernel.org, Christian Couder <chriscool@tuxfamily.org>
Subject: Re: [PATCH/RFC] gitweb: Create Gitweb::Git module
Date: Mon, 7 Jun 2010 17:25:46 +0200 [thread overview]
Message-ID: <201006071725.51263.jnareb@gmail.com> (raw)
In-Reply-To: <20100607144852.GN20775@machine.or.cz>
On Mon, Jun 07, 2010, Petr Baudis wrote:
> On Mon, Jun 07, 2010 at 02:54:11AM +0530, Pavan Kumar Sunkara wrote:
> > @@ -1548,21 +1536,6 @@ sub get_feed_info {
> > ## ----------------------------------------------------------------------
> > ## git utility subroutines, invoking git commands
>
> Is there any reason why didn't you move the rest of the commands from
> this section to Gitweb::Git as well?
Probably because they are less clear about being about running (git)
commands, I guess?
Let's examine those subroutines in more detail:
* git_cmd - requires $GIT and $git_dir, also $number_of_git_cmds
* quote_command - helper command, not exactly about running comands,
but about shell escaping / shell quoting. Should it be in Gitweb::Git
or in Gitweb::Escape?
* evaluate_git_version - requires $GIT, sets $number_of_git_cmds
and $git_version. Does it belong to Gitweb::Git, or Gitweb::Config,
or perhaps Gitweb::Request?
* git_get_hash (and wrappers: git_get_head_hash, git_get_full_hash,
git_get_short_hash) - requires $projectroot, something which other
commands do not require, and $git_dir. Uses git_cmd().
* git_get_type - uses git_cmd().
* git_get_hash_by_path - uses git_cmd()
* git_get_path_by_hash - uses git_cmd()
Subroutines related to parsing per-repository configuration should be
either in Gitweb::Config, or in a separate module, e.g. Gitweb::Git::Config
(or something like that, like Gitweb::RepoConfig, etc.).
Next there are 'git utility functions, directly accessing git repository'
--
Jakub Narebski
Poland
prev parent reply other threads:[~2010-06-07 15:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-06 21:24 [PATCH/RFC] gitweb: Create Gitweb::Git module Pavan Kumar Sunkara
2010-06-07 8:42 ` Jakub Narebski
2010-06-07 15:31 ` Pavan Kumar Sunkara
2010-06-07 14:48 ` Petr Baudis
2010-06-07 15:25 ` Jakub Narebski [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=201006071725.51263.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=pasky@suse.cz \
--cc=pavan.sss1991@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.