<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc/realpath, branch v8.18</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.18</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.18'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2012-03-15T18:24:05Z</updated>
<entry>
<title>realpath: let --relative-to default to --relative-base</title>
<updated>2012-03-15T18:24:05Z</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2012-03-14T19:42:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9f5aa4850133976eee22dcc0b506d7b632cd674c'/>
<id>urn:sha1:9f5aa4850133976eee22dcc0b506d7b632cd674c</id>
<content type='text'>
Most of the time, if someone wants to filter which paths are
relative while leaving all others absolute, they also want to
to the filtering based on the same --relative-to directory.
Make this easier to specify.

* src/realpath.c (main): Convert error to default.
* doc/coreutils.texi (realpath invocation): Document this.
* tests/misc/realpath: Adjust test to match.
* NEWS: Document it.
</content>
</entry>
<entry>
<title>tests: cover more realpath scenarios</title>
<updated>2012-03-15T16:28:42Z</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2012-03-14T03:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=61167bae9f27269724dc577a19d2bd48a437bafb'/>
<id>urn:sha1:61167bae9f27269724dc577a19d2bd48a437bafb</id>
<content type='text'>
'realpath --relative-base --relative-to' is identical to
--relative-base=--relative-to, so the test wasn't covering what
it claimed.  Expose recent fixes for handling of // on systems
where // is distinct, and for --relative-base=/.  Add test that
exposes our design decision that --relative-base that is not a
prefix of --relative-to is a no-op (if we later change behavior,
we will also have to change that part of the test).

* tests/misc/realpath: Fix typo. Add some tests.
</content>
</entry>
<entry>
<title>realpath: remove extraneous '/' for --relative-to edge cases</title>
<updated>2012-01-25T18:01:52Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2012-01-25T16:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=11af4b31b61302188a65e521921c42ddb45c4fb9'/>
<id>urn:sha1:11af4b31b61302188a65e521921c42ddb45c4fb9</id>
<content type='text'>
* src/realpath.c (path_common_prefix): Be consistent and
always include a leading '/' in the count returned.
(relpath): Account for the change in path_common_prefix()
and avoid outputting extra '/' chars in relative paths that
span the root dir.
* tests/misc/realpath: Add the two reported cases.
Reported by Mike Frysinger
</content>
</entry>
<entry>
<title>tests: adjust realpath test to avoid "make distcheck" failure</title>
<updated>2012-01-03T11:58:37Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-03T11:58:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=520b69ce36a71f83772e7d2bfeed7aefd1bc4f6f'/>
<id>urn:sha1:520b69ce36a71f83772e7d2bfeed7aefd1bc4f6f</id>
<content type='text'>
* tests/misc/realpath: Quote lhs of test ... = ..., so that
when $PWD contains a space (like it does via "make distcheck"),
the test does not fail
</content>
</entry>
<entry>
<title>realpath: a new program to print the resolved path</title>
<updated>2012-01-03T11:36:32Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2011-12-27T00:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77ea441f79aa115f79b47d9c1fc9c0004c5c7111'/>
<id>urn:sha1:77ea441f79aa115f79b47d9c1fc9c0004c5c7111</id>
<content type='text'>
This program is compatible with other realpath(1)
implementations, and also incorporates relpath like support,
through the --relative options.  The relpath support
was suggested by Peng Yu, who also provided an initial
implemenation of that functionality.

* AUTHORS: Add my name.
* NEWS: Mention the new command.
* README: Likewise.
* doc/coreutils.texi (realpath invocation): Add realpath info.
* man/Makefile.am (realpath.1): Add dependency.
* man/realpath.x: New template.
* man/.gitignore: Ignore generated man page.
* po/POTFILES.in: Add src/realpath.c.
* src/.gitignore: Exclude realpath.
* src/Makefile.am (EXTRA_PROGRAMS): Add realpath.
* src/realpath.c: New file.
* scripts/git-hooks/commit-msg: Add realpath to the list of prefixes.
* tests/Makefile.am (TESTS): Add misc/realpath.
* tests/misc/realpath: New file.
</content>
</entry>
</feed>
