All of lore.kernel.org
 help / color / mirror / Atom feed
* [GSOC][HELP] Incremental blame in gitweb.
@ 2012-03-30 21:06 jaseem abid
  2012-03-30 21:33 ` Jakub Narebski
  0 siblings, 1 reply; 2+ messages in thread
From: jaseem abid @ 2012-03-30 21:06 UTC (permalink / raw)
  To: git; +Cc: Jakub Narebski

Hello again,

I was learning from the gitweb source code and I am a bit stuck at a
particular point.
What does incremental blame do in gitweb? I tried to get some
information from the documentation.
I was expecting it to be used for pagination of huge git-blame output
or something similar. Doc says it can be used for similar purposes
I notice code written in JavaScript for AJAX calls etc, but i cant
find a place where it is being used. Can somebody give me a link to
one in k.org or somewhere for a demo? I tried to find some AJAX calls
in the web console but cant trace any. I'm a bit confused here.

Any help will be very much appreciated.


-- 
Jaseem Abid
+91 8891 72 43 72
S6 CSE student
National Institute of Technology , Calicut.

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

* Re: [GSOC][HELP] Incremental blame in gitweb.
  2012-03-30 21:06 [GSOC][HELP] Incremental blame in gitweb jaseem abid
@ 2012-03-30 21:33 ` Jakub Narebski
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Narebski @ 2012-03-30 21:33 UTC (permalink / raw)
  To: jaseem abid; +Cc: git

On Fri, 30 Mar 2012, jaseem abid wrote:

> I was learning from the gitweb source code and I am a bit stuck at a
> particular point.
> What does incremental blame do in gitweb? I tried to get some
> information from the documentation.
> I was expecting it to be used for pagination of huge git-blame output
> or something similar. Doc says it can be used for similar purposes
> I notice code written in JavaScript for AJAX calls etc, but i cant
> find a place where it is being used. Can somebody give me a link to
> one in k.org or somewhere for a demo? I tried to find some AJAX calls
> in the web console but cant trace any. I'm a bit confused here.
> 
> Any help will be very much appreciated.

The 'incremental_blame' view should produce the same output as ordinary
'blame' view, but in different way (using JavaScript and Ajax, and
"git blame --incremental").

With the ordinary 'blame' view we have to wait for the blame data to be
generated in full for the whole file (on server) before we get the view.
This can take quite a while (and that is why 'blame' feature is disabled
by default).

The Ajax-y 'incremental_blame' view gets the contents of the file from
"git cat-file blob <blob-id>" and shows it to web browser, then adds
blame view incrementally, from the most recent blame to most ancient,
calling "git blame --incremental" and getting its response via XHR,
and repainting contents of file with blame data.


You can run gitweb by yourself, for example using git-instaweb script
(I think it enables all features by default).

HTH
-- 
Jakub Narebski
Poland

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

end of thread, other threads:[~2012-03-30 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-30 21:06 [GSOC][HELP] Incremental blame in gitweb jaseem abid
2012-03-30 21:33 ` Jakub Narebski

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.