[lkml]   [2005]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [ANNOUNCE] git-pasky-0.1
    Good lord - you don't need to use arrays for this.

    The old-fashioned ways have their ways. Both the 'set'
    command and the 'read' command can split args and assign
    to distinct variable names.

    Try something like the following:

    diff-tree -r $id1 $id2 |
    sed -e '/^</ { N; s/\n>/ / }' -e 's/./& /' |
    while read op mode1 sha1 name1 mode2 sha2 name2
    ... various common stuff ...
    case "$op" in
    test $name1 = $name2 || die mismatched names
    label1=$(mkbanner "$loc1" $id1 "$name1" $mode1 $sha1)
    label2=$(mkbanner "$loc2" $id2 "$name1" $mode2 $sha2)
    diff -L "$label1" -L "$label2" -u "$loc1" "$loc2"

    I won't rest till it's the best ...
    Programmer, Linux Scalability
    Paul Jackson <> 1.650.933.1373, 1.925.600.0401
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-04-10 22:51    [W:0.021 / U:2.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site