<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;" bidimailui-detected-decoding-type="UTF-8"
bgcolor="#ffffff" text="#000000">
<p>Aha. I learn something new every day.</p>
<br>
As for git, on the contrary. /etc/alternatives contains symbolic links,
so it would be pointless to follow them. What git wisely does is
maintaining the link's destination. So if you change or delete the
symbolic link, you get exactly that change in the repository. I tried
changing a symbolic link, committed to git, and got a single plus-minus
change in the diff log, with the names of the destination files.<br>
<br>
Now it's clear to me why git doesn't follow symlinks. Not the first
time it turns out smarter than me. :P<br>
<br>
Eli<br>
<br>
On 06/08/2012 02:03 PM, Oleg Goldshmidt wrote:
<blockquote cite="mid:m3obouf4kl.fsf@goldshmidt.org" type="cite">
<pre wrap="">Eli Billauer <a class="moz-txt-link-rfc2396E"
href="mailto:eli@billauer.co.il"><eli@billauer.co.il></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">My what down the drain?
</pre>
</blockquote>
<pre wrap="">Eh, "man alternatives"? "ls -l /etc/alternatives"? I think it gets
installed with chkconfig...
Whatever, it's a humongous collection of symlinks to default version
of all sorts of things (perl and java come to mind), and a way to
maintain them, switch between versions, etc.
My home Fedora has more than 180 symlinks under /etc/alternatives -
none that I touched though. I've been in situations where something
you need - typically some 3rd party piece your production software
depends on - requires a particular version of, say, JVM (they are all
incompatible, as you probably know). Then it becomes really handy as a
part of your installation procedure.
</pre>
</blockquote>
<p><br>
</p>
<br>
<pre class="moz-signature" cols="72">--
Web: <a class="moz-txt-link-freetext" href="http://www.billauer.co.il">http://www.billauer.co.il</a>
</pre>
</body>
</html>