* Two gitweb feature requests
@ 2006-04-27 13:27 David Woodhouse
2006-04-27 13:35 ` Matthias Lederhofer
` (4 more replies)
0 siblings, 5 replies; 12+ messages in thread
From: David Woodhouse @ 2006-04-27 13:27 UTC (permalink / raw)
To: Kay Sievers; +Cc: git
First... When publishing trees, I currently give both the git:// URL for
people who want to pull the tree, and the http:// URL to gitweb for
those who just want to browse.
It would be useful if I could get away with giving just one URL --
probably the http:// one to gitweb. If gitweb were to have a mode in
which it gave a referral to the git:// URL, and if the git tools would
use that, then that would work well.
Secondly, it would be useful if gitweb would list the branches in a
repository and allow each of them to be viewed in the same way as it
does the master branch.
--
dwmw2
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Two gitweb feature requests
2006-04-27 13:27 Two gitweb feature requests David Woodhouse
@ 2006-04-27 13:35 ` Matthias Lederhofer
2006-04-27 13:47 ` David Woodhouse
2006-04-27 22:54 ` Ben Clifford
` (3 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Matthias Lederhofer @ 2006-04-27 13:35 UTC (permalink / raw)
To: David Woodhouse; +Cc: git
> First... When publishing trees, I currently give both the git:// URL for
> people who want to pull the tree, and the http:// URL to gitweb for
> those who just want to browse.
>
> It would be useful if I could get away with giving just one URL --
> probably the http:// one to gitweb. If gitweb were to have a mode in
> which it gave a referral to the git:// URL, and if the git tools would
> use that, then that would work well.
An easy way to do this is to put the git repository on the webserver
and tell the webserver to redirect to gitweb if the directory is
accessed directly, not a file in the git directory.
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Two gitweb feature requests
2006-04-27 13:35 ` Matthias Lederhofer
@ 2006-04-27 13:47 ` David Woodhouse
0 siblings, 0 replies; 12+ messages in thread
From: David Woodhouse @ 2006-04-27 13:47 UTC (permalink / raw)
To: Matthias Lederhofer; +Cc: git
On Thu, 2006-04-27 at 15:35 +0200, Matthias Lederhofer wrote:
> An easy way to do this is to put the git repository on the webserver
> and tell the webserver to redirect to gitweb if the directory is
> accessed directly, not a file in the git directory.
That's true, but isn't it much to use git:// instead of the 'dumb'
http:// method?
--
dwmw2
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Two gitweb feature requests
2006-04-27 13:27 Two gitweb feature requests David Woodhouse
2006-04-27 13:35 ` Matthias Lederhofer
@ 2006-04-27 22:54 ` Ben Clifford
2006-04-29 21:38 ` David Woodhouse
[not found] ` <20060428122630.234edde4.seanlkml@sympatico.ca>
` (2 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Ben Clifford @ 2006-04-27 22:54 UTC (permalink / raw)
To: David Woodhouse; +Cc: Kay Sievers, git
[-- Attachment #1: Type: TEXT/PLAIN, Size: 596 bytes --]
On Thu, 27 Apr 2006, David Woodhouse wrote:
> It would be useful if I could get away with giving just one URL --
> probably the http:// one to gitweb. If gitweb were to have a mode in
> which it gave a referral to the git:// URL, and if the git tools would
> use that, then that would work well.
HTML has a <link> element which can be used to indicate alternate forms of
a page. Gitweb already generates one already to point people at the RSS
feeds.
Kinda messy to make all the git tools learn how to read HTML, though...
--
Ben べン Бэн
http://www.hawaga.org.uk/ben/
^ permalink raw reply [flat|nested] 12+ messages in thread[parent not found: <20060428122630.234edde4.seanlkml@sympatico.ca>]
* Re: Two gitweb feature requests
[not found] ` <20060428122630.234edde4.seanlkml@sympatico.ca>
@ 2006-04-28 16:26 ` sean
0 siblings, 0 replies; 12+ messages in thread
From: sean @ 2006-04-28 16:26 UTC (permalink / raw)
To: David Woodhouse; +Cc: kay.sievers, git
On Thu, 27 Apr 2006 14:27:05 +0100
David Woodhouse <dwmw2@infradead.org> wrote:
> First... When publishing trees, I currently give both the git:// URL for
> people who want to pull the tree, and the http:// URL to gitweb for
> those who just want to browse.
>
> It would be useful if I could get away with giving just one URL --
> probably the http:// one to gitweb. If gitweb were to have a mode in
> which it gave a referral to the git:// URL, and if the git tools would
> use that, then that would work well.
This sounds like a good idea.
> Secondly, it would be useful if gitweb would list the branches in a
> repository and allow each of them to be viewed in the same way as it
> does the master branch.
At the bottom of the Summary page it already lists the branches,
underneath the tags.
Sean
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Two gitweb feature requests
2006-04-27 13:27 Two gitweb feature requests David Woodhouse
` (2 preceding siblings ...)
[not found] ` <20060428122630.234edde4.seanlkml@sympatico.ca>
@ 2006-04-28 17:37 ` Jakub Narebski
2006-04-28 18:23 ` Linus Torvalds
2006-04-29 11:16 ` Jakub Narebski
4 siblings, 1 reply; 12+ messages in thread
From: Jakub Narebski @ 2006-04-28 17:37 UTC (permalink / raw)
To: git
I'd like to have 'parent directory' link for trees ('..' link) at the top of
it's contents. I know it is possible to use browser history for that, but
it would give greater similarity with 'directory listing' mode of WWW
servers.
--
Jakub Narebski
Warsaw, Poland
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Two gitweb feature requests
2006-04-28 17:37 ` Jakub Narebski
@ 2006-04-28 18:23 ` Linus Torvalds
2006-04-28 19:11 ` Jakub Narebski
2006-04-29 5:02 ` Jeff King
0 siblings, 2 replies; 12+ messages in thread
From: Linus Torvalds @ 2006-04-28 18:23 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
On Fri, 28 Apr 2006, Jakub Narebski wrote:
>
> I'd like to have 'parent directory' link for trees ('..' link) at the top of
> it's contents. I know it is possible to use browser history for that, but
> it would give greater similarity with 'directory listing' mode of WWW
> servers.
Well, a git "tree" doesn't actually _have_ a parent. It potentially has
multiple.
So to get to "a parent", you literally do need to keep track of how you
got to the tree. Which is certainly possible (maybe it even ends up being
in the URI that gitk generates, I didn't check), but basically, if it
isn't tracked explicitly, it basically is impossible to find.
Not having back-pointers is what allows git to do data sharing and a lot
of other things efficiently. A tree is a tree is a tree, and has zero data
about what points to it, so as long as the _contents_ of a tree are the
same, you have exactly the same object. That means that the same subtree
can - and will - be pointed to by multiple upper-level trees and commits.
So you do need that "browser history" one way or another. Either in the
browser (use the "back button") or by encoding the "how did we get here"
information in the URI and the dynamically generated page content.
The downside is that you'd have two different web-pages for the same tree
depending on which commit it came from. Which is not a downside from a
user perspective, but it's a downside from a caching/server perspective,
since it means less reuse of pages (maybe gitweb already does that,
though).
Linus
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Two gitweb feature requests
2006-04-28 18:23 ` Linus Torvalds
@ 2006-04-28 19:11 ` Jakub Narebski
2006-04-29 5:02 ` Jeff King
1 sibling, 0 replies; 12+ messages in thread
From: Jakub Narebski @ 2006-04-28 19:11 UTC (permalink / raw)
To: git
Linus Torvalds wrote:
> On Fri, 28 Apr 2006, Jakub Narebski wrote:
>>
>> I'd like to have 'parent directory' link for trees ('..' link) at the top
>> of it's contents. I know it is possible to use browser history for that,
>> but it would give greater similarity with 'directory listing' mode of WWW
>> servers.
>
> Well, a git "tree" doesn't actually _have_ a parent. It potentially has
> multiple.
I have forgot about that. Sorry for the noise, then.
[...]
> So you do need that "browser history" one way or another. Either in the
> browser (use the "back button") or by encoding the "how did we get here"
> information in the URI and the dynamically generated page content.
Or use JavaScript via <a href="javascript:history.go(-1)">..</a>
But that wouldn't help me, because when I open the link in new window (new
tab), the new window (new tab) doesn't inherit history from parent... so
browser's "back" button doesn't work. Ah, well...
> The downside is that you'd have two different web-pages for the same tree
> depending on which commit it came from. Which is not a downside from a
> user perspective, but it's a downside from a caching/server perspective,
> since it means less reuse of pages (maybe gitweb already does that,
> though).
Perhaps if "how we get there" information was encoded via POST... but I
don't know if there would be the difference in caching c.f. GET (encoding
in URI).
--
Jakub Narebski
Warsaw, Poland
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Two gitweb feature requests
2006-04-28 18:23 ` Linus Torvalds
2006-04-28 19:11 ` Jakub Narebski
@ 2006-04-29 5:02 ` Jeff King
1 sibling, 0 replies; 12+ messages in thread
From: Jeff King @ 2006-04-29 5:02 UTC (permalink / raw)
To: git
On Fri, Apr 28, 2006 at 11:23:11AM -0700, Linus Torvalds wrote:
> The downside is that you'd have two different web-pages for the same tree
> depending on which commit it came from. Which is not a downside from a
> user perspective, but it's a downside from a caching/server perspective,
> since it means less reuse of pages (maybe gitweb already does that,
> though).
The gitweb request for a tree already contains not only the tree hash,
but also the commit hash and the filename path. It's possible (but more
expensive than typical tree requests) to find '..' by munging the path
and traversing the tree from the root.
-Peff
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Two gitweb feature requests
2006-04-27 13:27 Two gitweb feature requests David Woodhouse
` (3 preceding siblings ...)
2006-04-28 17:37 ` Jakub Narebski
@ 2006-04-29 11:16 ` Jakub Narebski
4 siblings, 0 replies; 12+ messages in thread
From: Jakub Narebski @ 2006-04-29 11:16 UTC (permalink / raw)
To: git
It would be nice if gitweb provided for the GIT repository description which
doesn't fit the "Description" column and is shortened, and any other text
which doesn't fit it's own column, full text of said field as the "title"
attribute for the cell 'td' element, or encompasing 'span' element. It
would result in having full, not shortened text of said field (e.g.
repository description) in the pop-up on mouse hover over said field. To
simplify things it could be provided unconditionally, regardless whether
the field needs shortening or not.
By the way, would it be possible for the repository without provided
description to stand out more, perhaps by changing formatting of default
description:
"Unnamed repository; edit this file to name it for gitweb."
to use ALL CAPS for attention, like that:
"UNNAMED REPOSITORY; edit this file to name it for gitweb."
or perhaps if possible use HTML formatting [additionally] for that.
--
Jakub Narebski
Warsaw, Poland
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Two gitweb feature requests
@ 2006-04-29 7:27 Jakub Narebski
0 siblings, 0 replies; 12+ messages in thread
From: Jakub Narebski @ 2006-04-29 7:27 UTC (permalink / raw)
To: git
It would be nice if gitweb provided for the GIT repository description
which doesn't fit the "Description" column and is shortened, and any
other text which doesn't fit it's own column, full text of said field
as the "title" attribute for the cell 'td' element, or encompasing
'span' element. It would result in having full, not shortened text of
said field (e.g. repository description) in the pop-up on mouse hover
over said field. To simplify things it could be provided
unconditionally, regardless whether the field needs shortening or not.
By the way, would it be possible for the repository without provided
description to stand out more, perhaps by changing formatting of
default description:
"Unnamed repository; edit this file to name it for gitweb."
to use ALL CAPS for attention, like that:
"UNNAMED REPOSITORY; edit this file to name it for gitweb."
or perhaps if possible use HTML formatting [additionally] for that.
--
Jakub Narebski
Poland
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-04-29 21:37 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-27 13:27 Two gitweb feature requests David Woodhouse
2006-04-27 13:35 ` Matthias Lederhofer
2006-04-27 13:47 ` David Woodhouse
2006-04-27 22:54 ` Ben Clifford
2006-04-29 21:38 ` David Woodhouse
[not found] ` <20060428122630.234edde4.seanlkml@sympatico.ca>
2006-04-28 16:26 ` sean
2006-04-28 17:37 ` Jakub Narebski
2006-04-28 18:23 ` Linus Torvalds
2006-04-28 19:11 ` Jakub Narebski
2006-04-29 5:02 ` Jeff King
2006-04-29 11:16 ` Jakub Narebski
-- strict thread matches above, loose matches on Subject: below --
2006-04-29 7:27 Jakub Narebski
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).