git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Literate programming with git
@ 2016-09-01  4:01 Scott Abbey
  0 siblings, 0 replies; 4+ messages in thread
From: Scott Abbey @ 2016-09-01  4:01 UTC (permalink / raw)
  To: git

> How does the linearify/dendrify work with already non-linear history?

The current implementation using magic strings in commit messages
seems incompatible with existing projects.

How about annotating an existing project with git-notes instead? You
could add notes to existing commits without needing to rewrite history.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Literate programming with git
@ 2016-08-31 20:41 Ben North
  2016-08-31 21:10 ` Stefan Beller
  0 siblings, 1 reply; 4+ messages in thread
From: Ben North @ 2016-08-31 20:41 UTC (permalink / raw)
  To: git

Hi,

I've recently been experimenting with using git to make software more
human-readable.  Presenting software for humans to read is not a new
idea (Knuth's 'literate programming'), but I think git can be a new
tool for showing the development of code in a structured way.
Merge-commits can break a flat sequence of commits into sections and
subsections, in the same way that a document's paragraphs are
arranged.  The hierarchical organisation is helpful when reading the
history, and also allows that history to be rendered into a structured
document explaining the code's development.

As a demo, I've created:

    http://www.redfrontdoor.org/20160813-literate-git-demo/index.html

This was generated directly from the git repo of the project, using
tools I wrote:

    https://github.com/bennorth/literate-git

For working with hierarchical git histories, I wrote another tool:

    https://github.com/bennorth/git-dendrify

The READMEs of the two projects give more details of these ideas.

This is at the prototype / proof-of-concept stage --- any feedback welcome!

Thanks,

Ben.

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

end of thread, other threads:[~2016-09-03 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-01  4:01 Literate programming with git Scott Abbey
  -- strict thread matches above, loose matches on Subject: below --
2016-08-31 20:41 Ben North
2016-08-31 21:10 ` Stefan Beller
2016-09-03 21:30   ` Ben North

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).