Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iAMEiJhL028221 for ; Mon, 22 Nov 2004 14:44:20 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id 784D753E2A for ; Mon, 22 Nov 2004 14:44:19 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWFZU-0001Cy-P5 for migo@homemail.com; Mon, 22 Nov 2004 09:53:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWFYG-0000q6-9c for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 09:52:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWFYE-0000op-RS for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 09:52:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWFYE-0000oj-My for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 09:52:22 -0500 Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWFP1-0000JQ-RN for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 09:42:52 -0500 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CWFP1-0001AM-00 for ; Mon, 22 Nov 2004 15:42:51 +0100 Received: from 203.7.227.188 ([203.7.227.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Nov 2004 15:42:50 +0100 Received: from wildfire by 203.7.227.188 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Nov 2004 15:42:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gnu-arch-users@gnu.org From: Anand Kumria Date: Tue, 23 Nov 2004 01:42:02 +1100 Message-ID: References: <1101070919.6134.11.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203.7.227.188 User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Subject: [Gnu-arch-users] Re: diff markers/ star merge X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 2018 Lines: 67 On Mon, 22 Nov 2004 08:01:59 +1100, Zenaan Harkness wrote: > Sorry to visit this again so soon, but I've been working for almost a > month on a change and I want to merge, but I don't want to commit my > change before I give it a solid review - which will take a good half day. > > So, I can tla undo, tla star-merge then tla redo, except when I tla redo I > get the .rej conflict files rather than diff3 in-file markers. > > Is there a way to play with my branches to achieve this (get the diff3 > in-file markers when I re-do)? This is only tangentially related but one of the guys at work found .rej files obscure. He put together rej2diff, included below. #!/bin/sh # Vince Ho # Convert patch .rej rejects to proper diff format # Convert to unified diffs by default difftype="unified" echo_diffhdr() { local name="$1" # set the right context diff header stuff prefix1="***" prefix2="---" [ -z "$name" ] && name="/dev/stdin" echo "$prefix1 $name" echo "$prefix2 $name-NEW" } # process options while [ $# -gt 0 ]; do case $1 in -u|--unified) difftype="unified" shift ;; -c|--context) difftype="context" shift ;; *) break ;; esac done # If no arguments, run in filter mode if [ $# -eq 0 ]; then (echo_diffhdr && cat) | filterdiff --format="$difftype" else # Process each file while [ $# -gt 0 ]; do (echo_diffhdr ${1%.rej}; cat $1) | filterdiff --format="$difftyp e" shift done fi HTH, Anand _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/