<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Raim &#187; vimdiff</title>
	<atom:link href="http://raim.codingfarm.de/blog/tag/vimdiff/feed/" rel="self" type="application/rss+xml" />
	<link>http://raim.codingfarm.de/blog</link>
	<description>My personal front yard on the web</description>
	<lastBuildDate>Sun, 29 Jan 2012 23:47:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>bzr shelve improved in 2.1.0</title>
		<link>http://raim.codingfarm.de/blog/2010/02/27/bzr-shelve-improved-in-2-1-0/</link>
		<comments>http://raim.codingfarm.de/blog/2010/02/27/bzr-shelve-improved-in-2-1-0/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 01:27:56 +0000</pubDate>
		<dc:creator>Rainer Müller</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[bzr]]></category>
		<category><![CDATA[shelve]]></category>
		<category><![CDATA[vimdiff]]></category>

		<guid isPermaLink="false">http://raim.codingfarm.de/blog/?p=101</guid>
		<description><![CDATA[Sometimes I was a bit frustrated that bzr does not support hunk splitting during selection changes with bzr shelve, as does git commit --interactive. Now with bzr 2.1.0 there is a new option available to launch an external editor to shelve changes as you like. Just add the option change_editor to your ~/.bazaar/bazaar.conf in the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I was a bit frustrated that bzr does not support hunk splitting during selection changes with <code>bzr shelve</code>, as does <code>git commit --interactive</code>. Now with bzr 2.1.0 there is a new option available to launch an external editor to shelve changes as you like.</p>
<p>Just add the option <code>change_editor</code> to your ~/.bazaar/bazaar.conf in the <code>[DEFAULT]</code> section.</p>
<p>For example:</p>
<blockquote><p><code><br />
[DEFAULT]<br />
change_editor = vimdiff -f @new_path @old_path</code></p></blockquote>
<p>Alternatively, you can of course use <code>meld</code> or <code>kdiff3</code> as well as <code>change_editor</code>, which will be a lot easier to use for beginners.</p>
<p>The placeholder @new_path will automatically be replaced with the path of the new version and @old_path with the path of the old version. With this configuration, there will be a new choice &#8220;<code>e</code>&#8221; during shelve:</p>
<blockquote><p><code>...<br />
Shelve? [yN<strong>e</strong>fq?]</code></p></blockquote>
<p>Entering &#8220;<code>e</code>&#8221; will start vimdiff in a two column view with the new version to the left and the old version to the right. You should read <code>:help diff</code> in vim to get more information about this mode. Basically you can obtain changes from the other buffer using <code><strong>do</strong></code> (&#8220;diff obtain&#8221;) and put changes to the other buffer using <code><strong>dp</strong></code> (&#8220;diff put&#8221;). Note that the old version on the right will be read-only and you are not supposed to change it. Also do not make unrelated changes or introduce new differences as that will result in conflicts on <code>bzr unshelve</code> later.</p>
<p>When you are fine with the changes exit the editor with <code>:wqa</code>. After confirming the shelve once more, you will see the left file as the new version in the working tree and every difference to the right file will be shelved.</p>
<p>Unfortunately this is <a href="https://bugs.launchpad.net/bzr/+bug/517660">not yet documented</a> in bzr itself at the time of this writing.</p>
]]></content:encoded>
			<wfw:commentRss>http://raim.codingfarm.de/blog/2010/02/27/bzr-shelve-improved-in-2-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

