threads / discuss / 15789

gitweb improvements

Subject: gitweb improvements

## tl;dr

5 messages between Oct 5, 2008 and Oct 6, 2008.

replies: 4people: 2as markdown or json

Tjernlund· Oct 5, 2008, 15:45 UTC · lore
When I browse a repo using gitweb, I miss two things:
1) looking at the history for a file or directory I really want
   to see the tags there too.
2) looking at a merge like:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=66120005e65eed8a05b14a36ab448bdec42f0d6b
   is somewhat confusing. It really doesn't tell you which commits that is
   included in the merge.
 Jocke
Jakub Narebski· Oct 5, 2008, 17:22 UTC · re: Tjernlund · lore

Re: gitweb improvements

"Tjernlund" <tjernlund@tjernlund.se> writes:
> When I browse a repo using gitweb, I miss two things:
> 1) looking at the history for a file or directory I really want
>    to see the tags there too.

Should be easy to do, but would probably wait (and be indirect result) of refactoring/unification of log-like views code ('log', 'shortlog', 'history', perhaps also 'rss', 'atom', 'search')

I have added it to my gitweb TODO list...
 
> 2) looking at a merge like:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=66120005e65eed8a05b14a36ab448bdec42f0d6b
>    is somewhat confusing. It really doesn't tell you which commits that is
>    included in the merge.

I don't understand you there. First, you have "(merge: 0d0f3ef 9778e9a)" in the navbar, so you can easily go to commit view for parents. Second, among commit headers you have two "parent", where SHA-1 of a commit is hidden link, and there are also 'commit' and 'diff' link for those.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Tjernlund· Oct 5, 2008, 22:25 UTC · re: Jakub Narebski · lore

RE: gitweb improvements

Show 18 quoted lines
> -----Original Message-----
> From: Jakub Narebski [mailto:jnareb@gmail.com]
> Sent: den 5 oktober 2008 19:22
> To: Tjernlund
> Cc: 'git'
> Subject: Re: gitweb improvements
> 
> "Tjernlund" <tjernlund@tjernlund.se> writes:
> 
> > When I browse a repo using gitweb, I miss two things:
> > 1) looking at the history for a file or directory I really want
> >    to see the tags there too.
> 
> Should be easy to do, but would probably wait (and be indirect result)
> of refactoring/unification of log-like views code ('log', 'shortlog',
> 'history', perhaps also 'rss', 'atom', 'search')
> 
> I have added it to my gitweb TODO list...
Great! Thanks.
Show 11 quoted lines
> 
> > 2) looking at a merge like:
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-
> 2.6.git;a=commit;h=66120005e65eed8a05b14a36ab448bdec42f0d6b
> >    is somewhat confusing. It really doesn't tell you which commits that is
> >    included in the merge.
> 
> I don't understand you there. First, you have "(merge: 0d0f3ef 9778e9a)"
> in the navbar, so you can easily go to commit view for parents. Second,
> among commit headers you have two "parent", where SHA-1 of a commit is
> hidden link, and there are also 'commit' and 'diff' link for those.

hmm, looks like I overlooked "(merge: 0d0f3ef 9778e9a)" part. However, I can't find the "ALSA: make the CS4270 driver a new-style I2C driver" from within this page.

Show 5 quoted lines
> 
> --
> Jakub Narebski
> Poland
> ShadeHawk on #git
Jakub Narebski· Oct 5, 2008, 23:54 UTC · re: Tjernlund · lore

Re: gitweb improvements

On Mon, 6 Oct 2008, Tjernlund wrote:
> Jakub Narebski wrote:
>> "Tjernlund" <tjernlund@tjernlund.se> writes:
Show 13 quoted lines
>>> 2) looking at a merge like:
>>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=66120005e65eed8a05b14a36ab448bdec42f0d6b
>>>    is somewhat confusing. It really doesn't tell you which commits that is
>>>    included in the merge.
>> 
>> I don't understand you there. First, you have "(merge: 0d0f3ef 9778e9a)"
>> in the navbar, so you can easily go to commit view for parents. Second,
>> among commit headers you have two "parent", where SHA-1 of a commit is
>> hidden link, and there are also 'commit' and 'diff' link for those.
> 
> hmm, looks like I overlooked "(merge: 0d0f3ef 9778e9a)" part. However, I can't
> find the "ALSA: make the CS4270 driver a new-style I2C driver" from within
> this page.

I think you don't quite understand the situation. The history looks like this:

    M      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
    |\
    | 2    ALSA: ASoC: Fix another cs4270 error path
    | *    ALSA: make the CS4270 driver a new-style I2C driver
    | |
    1 |    Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6  
Parents of commit 'M' (for merge) are '1' and '2', not 2,* or 1,2,*.

Now the fact that commit message for merge contains shortlog of merged branch does not mean that there must be direct link to such shortlog. You can go to shortlog (well, kind of) if you click on second parent, _then_ click on shortlog link at top of the page.

-- 
Jakub Narebski
Poland
Tjernlund· Oct 6, 2008, 22:17 UTC · re: Jakub Narebski · lore

RE: gitweb improvements

Show 42 quoted lines
> -----Original Message-----
> From: Jakub Narebski [mailto:jnareb@gmail.com]
> Sent: den 6 oktober 2008 01:54
> To: Tjernlund
> Cc: 'git'
> Subject: Re: gitweb improvements
> 
> On Mon, 6 Oct 2008, Tjernlund wrote:
> > Jakub Narebski wrote:
> >> "Tjernlund" <tjernlund@tjernlund.se> writes:
> 
> >>> 2) looking at a merge like:
> >>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-
> 2.6.git;a=commit;h=66120005e65eed8a05b14a36ab448bdec42f0d6b
> >>>    is somewhat confusing. It really doesn't tell you which commits that is
> >>>    included in the merge.
> >>
> >> I don't understand you there. First, you have "(merge: 0d0f3ef 9778e9a)"
> >> in the navbar, so you can easily go to commit view for parents. Second,
> >> among commit headers you have two "parent", where SHA-1 of a commit is
> >> hidden link, and there are also 'commit' and 'diff' link for those.
> >
> > hmm, looks like I overlooked "(merge: 0d0f3ef 9778e9a)" part. However, I can't
> > find the "ALSA: make the CS4270 driver a new-style I2C driver" from within
> > this page.
> 
> I think you don't quite understand the situation. The history looks
> like this:
> 
>     M      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
>     |\
>     | 2    ALSA: ASoC: Fix another cs4270 error path
>     | *    ALSA: make the CS4270 driver a new-style I2C driver
>     | |
>     1 |    Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
> 
> Parents of commit 'M' (for merge) are '1' and '2', not 2,* or 1,2,*.
> 
> Now the fact that commit message for merge contains shortlog of merged
> branch does not mean that there must be direct link to such shortlog.
> You can go to shortlog (well, kind of) if you click on second parent,
> _then_ click on shortlog link at top of the page.
You are quite right, I didn't quite follow the situation. I do however have one
observation, would it be possible to list the commits in a merge the same way
you list commits on the top level, that is, more or less make the headings
 "ALSA: ASoC: Fix another cs4270 error path"
 "ALSA: make the CS4270 driver a new-style I2C driver"
links one can follow?
 Jocke

← back to recent threads