Michael wrote:

Attached a few helper functions (bash) I use when working with fossil ...
Mostly to shorten the command line

 $ for arg in $( fossil ls | egrep "^MISSING" | awk '{print $2}' ) ;
   do
     fossil rm ${arg} ;
   done
This was the command Michal Richter gave me a while ago when I was
trying to do the same thing.

fossil changes | grep ^MISSING | sed 's/^MISSING *//' | xargs fossil rm

I understand the above command, but sed and xargs are still not familiar
tools for me, so to use this means going out of my work flow to look it
up. (Not to mention it's really long!) And of course it won't work at
all on Windows.



--
Sincerely,
    Andreas Kupries <[email protected]>
    Developer @    <http://www.activestate.com/>
function changed () {
    clear
    echo
    fossil extra | sed -e 's|^|EXTRA    |'
    echo
    fossil changes
    echo
}

function up () {
    fossil update $*
}

function delta () {
    fossil changes|grep EDITED|projection 2|xargs -n1 fossil gdiff
}

function delta1 () {
    fossil changes|grep EDITED|projection 2|grep "$1"|xargs -n1 fossil gdiff
}

function status () {
    clear
    echo
    fossil timeline
    echo
}

function commit () {
    msg="$1"
    shift
    fossil commit --nosign -m "$msg" $*
}

function add () {
    fossil add $*
}

function move() {
    mv        "$1" "$2"
    fossil mv "$1" "$2"
}

function remove() {
    rm        "$1"
    fossil rm "$1"
}
#!/bin/sh
#
awk "{ print \$$1 }"
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to