git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git rebase --interactive problems

From
Jeff Epler <jepler@unpythonic.net>
Date
Sep 7, 2009, 13:03 UTC
Message-ID
<20090907130338.GA11644@unpythonic.net>
In-Reply-To
<1252326716.7497.1333578429@webmail.messagingengine.com>
It looks like something is going wrong with the 'grep -c' in
    mark_action_done () {
            sed -e 1q < "$TODO" >> "$DONE"
            sed -e 1d < "$TODO" >> "$TODO".new
            mv -f "$TODO".new "$TODO"
            count=$(grep -c '^[^#]' < "$DONE")
            total=$(($count+$(grep -c '^[^#]' < "$TODO")))
            if test "$last_count" != "$count"
            then
                    last_count=$count
                    printf "Rebasing (%d/%d)\r" $count $total
                    test -z "$VERBOSE" || echo
            fi
    }
are you using an unusual platform or have an unusual /bin/grep or
/bin/sh?
Jeff
Previous: Dave RodgmanNext: Carlo Marcelo Arenas Belon
Message 2 of 3 in “git rebase --interactive problems”
  1. Dave RodgmanSep 7, 2009
  2. Jeff EplerSep 7, 2009
  3. Carlo Marcelo Arenas BelonSep 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.