Note that there are some explanatory texts on larger screens.

plurals
  1. POsed: parse git --line-porcelain output
    primarykey
    data
    text
    <p>this is related to <a href="https://stackoverflow.com/questions/14142609/git-discover-which-commits-ever-touched-a-range-of-lines/14300601#14300601">this question</a>, but I think it warrants a separate question.</p> <p><code>git blame --line-porcelain</code>'s output is something like this</p> <pre><code>27ce485030bf872158ceb011e6bd775d2ead5eeb 9 36 1 author Joao Tavora author-time 1358179206 committer Joao Tavora committer-time 1358179206 summary initial commit boundary filename test.el (defun AB (space task next.task) 242020d0de6363d48d32465299d07239f0a9940f 19 37 1 author Joao Tavora author-time 1358179709 committer Joao Tavora committer-time 1358179709 summary reinstate declare previous 11da1748d905aa9520ee3d6d9ac6a8712db0040f test.el filename test.el (declare (ignore space)) cbfa1ec071dd30a27be82dd041ccc9c384e5ff60 11 38 2 author Joao Tavora author-time 1358179273 committer Joao Tavora committer-time 1358179273 summary use thingy previous 69af7ace6e2b6c006c86e4fd91bf3c15ff8cec07 test.el filename test.el (if (and (some.task.p (task (IP.TASK-thingy task))) </code></pre> <p>How would I use sed (or grep or awk) toparse to filter out just the commit sha and the comitter-time? In the example above it should yield:</p> <pre><code>27ce485030bf872158ceb011e6bd775d2ead5eeb 1358179206 242020d0de6363d48d32465299d07239f0a9940f 1358179709 cbfa1ec071dd30a27be82dd041ccc9c384e5ff60 1358179273 </code></pre> <p>I'd rather not depend on ruby, although a perl one-liner might be OK.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload