https://bugs.freedesktop.org/show_bug.cgi?id=70625

          Priority: medium
            Bug ID: 70625
          Assignee: [email protected]
           Summary: Add --cat parameter to make git diffs pretty
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: NEW
           Version: 4.2.0.0.alpha0+ Master
         Component: Libreoffice
           Product: LibreOffice

I just read:
   http://git-scm.com/book/ch7-2.html (search for odt)

And realized we could become a much more useful part of the git ecosystem if we
had a simple '--cat' mode that dumped most (if not all) formats as flat-odf to
allow easier diffing (and logging?)

What we need (instead of that embarassing script) is something that handles doc
and ODF and spreadsheets etc. and dumps text so:

loffice --cat <filename> | less

We will inevitably need to use a /tmp file and adapt the existing --convert-to
txt code to do this easily, but - it'd be great to have that built-in.

Code pointers:

desktop/source/app/cmdlineargs.cxx
http://cgit.freedesktop.org/libreoffice/core/tree/desktop/source/app/cmdlinehelp.cxx#n50
http://cgit.freedesktop.org/libreoffice/core/tree/desktop/source/app/cmdlineargs.cxx

checkout GetConversionList:

http://cgit.freedesktop.org/libreoffice/core/tree/desktop/source/app/app.cxx#n2443

Of course - the slight downer is that the factory process, and the
command-line-arg parsing piece are separated by a process / factory barrier -
so it's possible we'd need to add a round-trip reply that returns the /tmp
filename and then cat that.

Thanks for poking !

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to