emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Diffing org files with orgmode results
@ 2008-03-09 14:53 lanas
  2008-03-09 15:07 ` lanas
  0 siblings, 1 reply; 2+ messages in thread
From: lanas @ 2008-03-09 14:53 UTC (permalink / raw)
  To: emacs-orgmode

Folks,

  This may be far-fetched.  Let's say that there's an org file whose
purpose is to maintain a list of tasks.  The file is viewable by
everyone in its html incarnation.  It could be useful to produce a
html difference between updates of that file that would look like and
org file.

  For instance, the file would have entries like:

  - [-] Add support for Australian customers [2/4]
    - [X] Menu entry for country code
    - [X] Change behaviour of device
    - [ ] Test
    - [ ] Update user manual

  And would be updated like:

  - [-] Add support for Australian customers [3/5]
    - [X] Menu entry for country code
    - [X] Menu entry for extra delay
    - [X] Change behaviour of device
    - [X] Test
    - [ ] Update user manual

  The diffrence would look like:

  - [-] Add support for Australian customers [3/5]
    - [X] Menu entry for extra delay
    - [X] Test

  The difference would be a separate html file with a 'NEW' link
pointing to it for convenience.

  Is there a utility that would produce a org-formatted difference
along these lines ?  Diff could obviously make it, but then the actual
diff output would have to be processed to produce a org file that could
be converted to html.

Cheers,

Al

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

* Re: Diffing org files with orgmode results
  2008-03-09 14:53 Diffing org files with orgmode results lanas
@ 2008-03-09 15:07 ` lanas
  0 siblings, 0 replies; 2+ messages in thread
From: lanas @ 2008-03-09 15:07 UTC (permalink / raw)
  To: emacs-orgmode

Le Dimanche, 9 Mars 2008 10:53:44 -0400,
lanas <lanas@securenet.net> a écrit :

> everyone in its html incarnation.  It could be useful to produce a
> html difference between updates of that file that would look like and
> org file.

I tried with a simple diff like the following and got some results:

diff file1.org file1.org~ | egrep -v '<|\---|\d*c\d*' | sed 's/>//g' > new.org

Perhaps it's not that arcane to produce a html diff of two org files ;-)

Cheers,

Al

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

end of thread, other threads:[~2008-03-09 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-09 14:53 Diffing org files with orgmode results lanas
2008-03-09 15:07 ` lanas

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).