git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] git-gui: document the gui.maxfilesdisplayed variable
@ 2011-02-13 12:53 Heiko Voigt
  2011-02-14  7:51 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Heiko Voigt @ 2011-02-13 12:53 UTC (permalink / raw)
  To: Pat Thoyts; +Cc: Junio C Hamano, git

This removes a TODO item in the git-gui source.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
---
I am not sure how we should go about this patch. Should I split it in
two since it removes the TODO line in git-gui and adds the
documentation in git?

Cheers Heiko

 Documentation/config.txt |    5 +++++
 git-gui/git-gui.sh       |    1 -
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Documentation/config.txt b/Documentation/config.txt
index 722e00a..d8edeeb 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1122,6 +1122,11 @@ gui.matchtrackingbranch::
 	default to tracking remote branches with matching names or
 	not. Default: "false".
 
+gui.maxfilesdisplayed::
+	Configures the amount of changed files after which git gui will
+	issue a warning that there are more changes than can be
+	displayed.
+
 gui.newbranchtemplate::
 	Is used as suggested name when creating new branches using the
 	linkgit:git-gui[1].
diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
index e03eda0..db09f00 100755
--- a/git-gui/git-gui.sh
+++ b/git-gui/git-gui.sh
@@ -838,7 +838,6 @@ set default_config(gui.newbranchtemplate) {}
 set default_config(gui.spellingdictionary) {}
 set default_config(gui.fontui) [font configure font_ui]
 set default_config(gui.fontdiff) [font configure font_diff]
-# TODO: this option should be added to the git-config documentation
 set default_config(gui.maxfilesdisplayed) 5000
 set default_config(gui.usettk) 1
 set default_config(gui.warndetachedcommit) 1
-- 
1.7.4.rc3.4.g155c4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] git-gui: document the gui.maxfilesdisplayed variable
  2011-02-13 12:53 [PATCH] git-gui: document the gui.maxfilesdisplayed variable Heiko Voigt
@ 2011-02-14  7:51 ` Junio C Hamano
  2011-02-14 22:03   ` future of git-gui as subsytem or submodule, WAS: " Heiko Voigt
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2011-02-14  7:51 UTC (permalink / raw)
  To: Heiko Voigt; +Cc: Pat Thoyts, git

Heiko Voigt <hvoigt@hvoigt.net> writes:

> I am not sure how we should go about this patch. Should I split it in
> two since it removes the TODO line in git-gui and adds the
> documentation in git?

Two opposing thoughts.

 1. We can keep git-gui and git proper separate projects, move git-gui
    documentation out of git to git-gui, and with clever Makefile trick
    include and build git-gui related documentation conditionally only
    when git-gui appears part of the git project tree (this anticipates a
    future where git-gui is bound to git not with the subtree merge
    strategy as we currently do, but as a submodule).

 2. Just like the Linux kernel project, we can make each subsystem with
    separate maintainers just different repositories of the same git
    project with their own focus.  We already do this for git-svn (which I
    delegate to Eric Wong by pulling from him) and some parts of contrib/
    tree; we have already been halfway there for gitweb/ (which I don't
    regularly "pull from", but I mainly act as a patch monkey without
    actively managing that part myself).  I don't see why we cannot extend
    that model to git-gui and gitk.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* future of git-gui as subsytem or submodule, WAS: [PATCH] git-gui: document the gui.maxfilesdisplayed variable
  2011-02-14  7:51 ` Junio C Hamano
@ 2011-02-14 22:03   ` Heiko Voigt
  2011-02-14 22:17     ` future of git-gui as subsytem or submodule Jonathan Nieder
  2011-02-14 22:46     ` future of git-gui as subsytem or submodule, WAS: [PATCH] git-gui: document the gui.maxfilesdisplayed variable Jens Lehmann
  0 siblings, 2 replies; 5+ messages in thread
From: Heiko Voigt @ 2011-02-14 22:03 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Pat Thoyts, git

Hi,

On Sun, Feb 13, 2011 at 11:51:04PM -0800, Junio C Hamano wrote:
> Two opposing thoughts.
> 
>  1. We can keep git-gui and git proper separate projects, move git-gui
>     documentation out of git to git-gui, and with clever Makefile trick
>     include and build git-gui related documentation conditionally only
>     when git-gui appears part of the git project tree (this anticipates a
>     future where git-gui is bound to git not with the subtree merge
>     strategy as we currently do, but as a submodule).
> 
>  2. Just like the Linux kernel project, we can make each subsystem with
>     separate maintainers just different repositories of the same git
>     project with their own focus.  We already do this for git-svn (which I
>     delegate to Eric Wong by pulling from him) and some parts of contrib/
>     tree; we have already been halfway there for gitweb/ (which I don't
>     regularly "pull from", but I mainly act as a patch monkey without
>     actively managing that part myself).  I don't see why we cannot extend
>     that model to git-gui and gitk.

I would vote for 2. Not because I think submodules will not become as easy to
use so they are ready for that but I think there are mainly two reasons
for using a submodule

  A. The submodule contains shared code which is used by multiple projects

  B. A submodule is used to keep large collection of files seperate from
     a project because most times they are not needed and would
     interfere with the project.

There are maybe more but these two do not apply to git-gui and I like
the way it is currently integrated in one repository with git. It also
underlines the fact that git-gui is AFAICS the standard and best
developed gui for git.

Another plus, if we extend that model to gitk, is that both could start
sharing code between each other (maybe relocate to the same directory).

Although 1. would be a good choice for getting more people involved in
enhancing submodule support, from a philosophical standpoint, I think 2.
is the more natural choice.

What do others think?

Cheers Heiko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: future of git-gui as subsytem or submodule
  2011-02-14 22:03   ` future of git-gui as subsytem or submodule, WAS: " Heiko Voigt
@ 2011-02-14 22:17     ` Jonathan Nieder
  2011-02-14 22:46     ` future of git-gui as subsytem or submodule, WAS: [PATCH] git-gui: document the gui.maxfilesdisplayed variable Jens Lehmann
  1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Nieder @ 2011-02-14 22:17 UTC (permalink / raw)
  To: Heiko Voigt; +Cc: Junio C Hamano, Pat Thoyts, git, Paul Mackerras

Hi,

Two quick thoughts.

Heiko Voigt wrote:
> On Sun, Feb 13, 2011 at 11:51:04PM -0800, Junio C Hamano wrote:

>>  2. Just like the Linux kernel project, we can make each subsystem with
>>     separate maintainers just different repositories of the same git
>>     project with their own focus.  We already do this for git-svn (which I
[...]
> Another plus, if we extend that model to gitk, is that both could start
> sharing code between each other (maybe relocate to the same directory).

I think historically Paul has tried to maintain compatibility with
older git versions in gitk, to allow it to be used as a separate
project.

A dream would be for gitk and hgk to share code, but I'm not sure
anyone has even tried a proof-of-concept for that.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: future of git-gui as subsytem or submodule, WAS: [PATCH] git-gui: document the gui.maxfilesdisplayed variable
  2011-02-14 22:03   ` future of git-gui as subsytem or submodule, WAS: " Heiko Voigt
  2011-02-14 22:17     ` future of git-gui as subsytem or submodule Jonathan Nieder
@ 2011-02-14 22:46     ` Jens Lehmann
  1 sibling, 0 replies; 5+ messages in thread
From: Jens Lehmann @ 2011-02-14 22:46 UTC (permalink / raw)
  To: Heiko Voigt; +Cc: Junio C Hamano, Pat Thoyts, git, Paul Mackerras

Am 14.02.2011 23:03, schrieb Heiko Voigt:
> On Sun, Feb 13, 2011 at 11:51:04PM -0800, Junio C Hamano wrote:
>> Two opposing thoughts.
>>
>>  1. We can keep git-gui and git proper separate projects, move git-gui
>>     documentation out of git to git-gui, and with clever Makefile trick
>>     include and build git-gui related documentation conditionally only
>>     when git-gui appears part of the git project tree (this anticipates a
>>     future where git-gui is bound to git not with the subtree merge
>>     strategy as we currently do, but as a submodule).
>>
>>  2. Just like the Linux kernel project, we can make each subsystem with
>>     separate maintainers just different repositories of the same git
>>     project with their own focus.  We already do this for git-svn (which I
>>     delegate to Eric Wong by pulling from him) and some parts of contrib/
>>     tree; we have already been halfway there for gitweb/ (which I don't
>>     regularly "pull from", but I mainly act as a patch monkey without
>>     actively managing that part myself).  I don't see why we cannot extend
>>     that model to git-gui and gitk.
> 
> I would vote for 2. Not because I think submodules will not become as easy to
> use so they are ready for that but I think there are mainly two reasons
> for using a submodule
> 
>   A. The submodule contains shared code which is used by multiple projects
> 
>   B. A submodule is used to keep large collection of files seperate from
>      a project because most times they are not needed and would
>      interfere with the project.

C. The subproject is developed by someone else, is not under the
   administrative control of the superproject, and follows a different
   release cycle. (as seen on the Git Wiki ;-)

I don't have strong feelings about this choice, but because of the way
git-gui and gitk are developed at the moment 1) seems more appropriate
right now. But this is Pat's and Paul's call, as they have to agree with
the choice taken and choosing 2) might tie those guis more to a specific
git version than they might be comfortable with. But I'm just guessing
here ...

> There are maybe more but these two do not apply to git-gui and I like
> the way it is currently integrated in one repository with git. It also
> underlines the fact that git-gui is AFAICS the standard and best
> developed gui for git.
> 
> Another plus, if we extend that model to gitk, is that both could start
> sharing code between each other (maybe relocate to the same directory).

That is an advantage of approach 2).

> Although 1. would be a good choice for getting more people involved in
> enhancing submodule support, from a philosophical standpoint, I think 2.
> is the more natural choice.

I don't think "getting more people involved in enhancing submodule
support" is a strong argument here. We should choose that policy
which supports the development culture of the projects in question.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-14 22:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-13 12:53 [PATCH] git-gui: document the gui.maxfilesdisplayed variable Heiko Voigt
2011-02-14  7:51 ` Junio C Hamano
2011-02-14 22:03   ` future of git-gui as subsytem or submodule, WAS: " Heiko Voigt
2011-02-14 22:17     ` future of git-gui as subsytem or submodule Jonathan Nieder
2011-02-14 22:46     ` future of git-gui as subsytem or submodule, WAS: [PATCH] git-gui: document the gui.maxfilesdisplayed variable Jens Lehmann

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).