Updates cg-Xdiffdo to handle the new cg-diff-* output format (Not strictly necessary, since git-diff-* -p is better anyway, but if someone is relying on cg-* Porcelain....) Signed-Off-By: Jason McMullan <jason.mcmullan@timesys.com> Index: cg-Xdiffdo =================================================================== --- be7e79d03a25ad69405c8e17c024f0c83a9d16cd/cg-Xdiffdo (mode:100755) +++ uncommitted/cg-Xdiffdo (mode:100755) @@ -48,13 +48,13 @@ while [ "$1" ]; do declare -a param - param=($1); - op=${param[0]:0:1} - mode=${param[0]:1} - type=${param[1]} - sha=${param[2]} - name=${param[3]} + param=($1 $2); + mode=${param[0]:1}"->"${param[1]} + sha=${param[2]}"->"${param[3]} + op=${param[4]} + name=${param[5]} + type=`git-cat-file -t $sha` if [ "$filter" ] && (echo "$name" | grep -vqxFf $filter); then shift; continue fi @@ -72,15 +72,15 @@ ([ -d "$dir1" ] && [ -d "$dir2" ]) || mkdir -p "$dir1" "$dir2" case $op in - "+") + "A") mkbanner "$loc2" $id2 "$name" $mode $sha diff -L "/dev/null (tree:$id1)" -L "$label" -u /dev/null "$loc2" ;; - "-") + "D") mkbanner "$loc1" $id1 "$name" $mode $sha diff -L "$label" -L "/dev/null (tree:$id2)" -u "$loc1" /dev/null ;; - "*") + "M") modes=(${mode/->/ }); mode1=${modes[0]}; mode2=${modes[1]} shas=(${sha/->/ }); @@ -94,7 +94,7 @@ esac #rm -f "$loc1" "$loc2" - shift + shift 2 done rm -rf "$diffdir" -- Jason McMullan <jason.mcmullan@timesys.com> TimeSys Corporation - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2.1.8 : 2005-05-26 05:38:52 EST