<?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>stick&#039;s corner &#187; git</title>
	<atom:link href="http://stick.gk2.sk/blog/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://stick.gk2.sk</link>
	<description>All composite phenomena are impermanent. All contaminated things and events are unsatisfactory.</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:58:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Bash PS1 tricks</title>
		<link>http://stick.gk2.sk/blog/2011/06/ps1-tricks/</link>
		<comments>http://stick.gk2.sk/blog/2011/06/ps1-tricks/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 11:34:34 +0000</pubDate>
		<dc:creator>Pavol Rusnak</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[ps1]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tips+tricks]]></category>

		<guid isPermaLink="false">http://stick.gk2.sk/?p=1893</guid>
		<description><![CDATA[Many of you know already about this feature, but some of you don&#8217;t so I wanted to share it with you. I just changed mine PS1 configuration in ~/.bashrc to look like this: export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWSTASHSTATE=1 export GIT_PS1_SHOWUNTRACKEDFILES=1 export PS1='\[\033[1;37m\][\[\033[1;32m\]\u\[\033[0m\]@\h\[\033[0m\] $? \[\033[1;34m\]\w\[\033[0;35m\]$(__git_ps1 " %s")\[\033[1;37m\]]\[\033[0m\] ' Take a look at the following picture to see [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you know already about this feature, but some of you don&#8217;t so I wanted to share it with you. I just changed mine PS1 configuration in <code>~/.bashrc</code> to look like this:</p>
<pre>export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export PS1='\[\033[1;37m\][\[\033[1;32m\]\u\[\033[0m\]@\h\[\033[0m\] $? \[\033[1;34m\]\w\[\033[0;35m\]$(__git_ps1 " %s")\[\033[1;37m\]]\[\033[0m\] '</pre>
<p>Take a look at the following picture to see how it works:</p>
<p><a href="http://stick.gk2.sk/blog/wp-content/uploads/2011/06/ps1tricks.png"  rel="lightbox[1893]"><img class="aligncenter size-medium wp-image-1895" title="PS1 tricks" src="http://stick.gk2.sk/blog/wp-content/uploads/2011/06/ps1tricks-300x125.png" alt="" width="300" height="125" /></a></p>
<p>or check the <a href="http://youtube.com/watch?v=AKNgtHnKgJc">video on youtube</a>.</p>
<p>The number between <code>user@host</code> and the current working directory is the exit status of the most recently executed command (or pipeline). This is great because you don&#8217;t have to type <code>echo $?</code> everytime you want to find it out. The <code>__git_ps1</code> magic will print git branch name if you are inside of the git repository. Furthermore it will add special characters indicating the state of the repo: <code>%</code> &#8211; untracked files present, <code>+</code> &#8211; new files added, <code>*</code> &#8211; some tracked files changed, <code>$</code> &#8211; there is something in the stash (see <code>git stash --help</code>). Pretty cool, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://stick.gk2.sk/blog/2011/06/ps1-tricks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Prototype Git backend for openSUSE BuildService</title>
		<link>http://stick.gk2.sk/blog/2009/04/prototype-git-backend-for-opensuse-buildservice/</link>
		<comments>http://stick.gk2.sk/blog/2009/04/prototype-git-backend-for-opensuse-buildservice/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 08:33:20 +0000</pubDate>
		<dc:creator>Pavol Rusnak</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[buildservice]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://stick.gk2.sk/blog/?p=308</guid>
		<description><![CDATA[I&#8217;m happy to announce that this year I&#8217;ll be mentoring GSoC project which will attempt to create an alternative source backend using git. Student implementing the idea is Peter Libič. I have created an openSUSE wiki page with the copy of the proposal and some useful links. Some of my colleagues (like Andreas Gruenbacher and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-192" style="margin-right: 16px;" title="GSoC logo 2009" src="http://stick.gk2.sk/blog/wp-content/uploads/2009/03/2009socwithlogo.png" alt="GSoC logo 2009" width="128" height="85" /></p>
<p style="text-align: justify;">I&#8217;m happy to announce that this year I&#8217;ll be mentoring GSoC project which will attempt to create an alternative source backend using <a href="http://git-scm.com/">git</a>. Student implementing the idea is Peter Libič. I have created an openSUSE <a href="http://en.opensuse.org/Build_Service/Git_Backend">wiki page</a> with the copy of the proposal and some useful links. Some of my colleagues (like <a href="http://www.suse.de/~agruen/">Andreas Gruenbacher</a> and <a href="http://ifup.org/">Brandon Philips</a>) are also interested in topic and already provided a valuable feedback. If you&#8217;d like to get involved, feel free to contact me, edit the project wiki page or join us on IRC channel <a href="irc://irc.freenode.net/#obs-git">#obs-git@irc.freenode.net</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stick.gk2.sk/blog/2009/04/prototype-git-backend-for-opensuse-buildservice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scout project introduction</title>
		<link>http://stick.gk2.sk/blog/2008/05/scout-project-introduction/</link>
		<comments>http://stick.gk2.sk/blog/2008/05/scout-project-introduction/#comments</comments>
		<pubDate>Fri, 16 May 2008 21:13:03 +0000</pubDate>
		<dc:creator>Pavol Rusnak</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[intro]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[scout]]></category>

		<guid isPermaLink="false">http://stick.gk2.sk/blog/?p=10</guid>
		<description><![CDATA[You might have heard about my older project called command-not-found. Right now it is implemented as SQLite database which contains only table(binary, path, package). (I&#8217;m going to rewrite it, so that it makes use of the new SAT solver files, but this is not the topic of this blogpost). In the meantime, my colleague and [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You might have heard about my older project called <a href="http://stick.gk2.sk/blog/?p=4">command-not-found</a>. Right now it is implemented as SQLite database which contains only <kbd>table(binary, path, package)</kbd>. (I&#8217;m going to rewrite it, so that it makes use of the new SAT solver files, but this is not the topic of this blogpost).</p>
<p style="text-align: justify;">In the meantime, my colleague and Java packager Michal Vyskocil encountered a problem: it is very hard to find out which package installs particular Java class. Standa Brabec suggested that we could also process autoconf macros stored in m4 files. So we decided to merge these ideas together and we started the &#8220;Scout&#8221; project.</p>
<p style="text-align: justify;">It will be a command line utility which will index various attributes of the packages and will allow the users to search in them. Each functionality will have its own module, so implementation could differ (we wanted the binary module to use SAT solver files and the others SQlite). I think that you&#8217;ll get the idea from the following picture:</p>
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;"><a title="Scout project mockup" href="http://stick.gk2.sk/blog/wp-content/uploads/2008/05/scout-mockup.png"  rel="lightbox[10]"><img class="size-medium wp-image-12 aligncenter" title="scout-mockup" src="http://stick.gk2.sk/blog/wp-content/uploads/2008/05/scout-mockup-300x170.png" alt="" width="300" height="170" /></a></p>
<p style="text-align: justify;">Michal and I started development by creating a <a href="http://repo.or.cz/w/scout.git">GIT repository</a> (not much to see there, yet). Obviously this program will not appear in openSUSE 11.0, but we&#8217;d like to see it in 11.1 (and my plan is that command-not-found will use scout as its helper). At start, we will create 3 modules (binaries, java and autoconf), but later we&#8217;ll extend the support for python/ruby programmers.</p>
<p style="text-align: justify;">If you have any ideas, do not hesitate and contact me! <img src='http://stick.gk2.sk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stick.gk2.sk/blog/2008/05/scout-project-introduction/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

