<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/tool/file2lastrev.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Avoid overwriting revision.h when .git doesn't exist (#6915)</title>
<updated>2022-12-13T07:34:30+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-12-13T07:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7edcdc380f3bb6f5a81bfb5798c339acd844a0d3'/>
<id>7edcdc380f3bb6f5a81bfb5798c339acd844a0d3</id>
<content type='text'>
* Avoid overwriting revision.h when .git doesn't exist

* Overwrite revision.h if it's blank</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Avoid overwriting revision.h when .git doesn't exist

* Overwrite revision.h if it's blank</pre>
</div>
</content>
</entry>
<entry>
<title>file2lastrev.rb: changed revision may be `nil` [ci skip]</title>
<updated>2022-11-02T04:37:50+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-02T04:31:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8e2c70af141239f5142642db35cee11c3d00bd24'/>
<id>8e2c70af141239f5142642db35cee11c3d00bd24</id>
<content type='text'>
When `--suppress_not_found` option is given, no revision information
is available.  And remove extraneous newline, when result is empty or
ends with a newline.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When `--suppress_not_found` option is given, no revision information
is available.  And remove extraneous newline, when result is empty or
ends with a newline.
</pre>
</div>
</content>
</entry>
<entry>
<title>file2lastrev.rb: try to overwrite the found revision.h as before</title>
<updated>2022-11-02T03:38:31+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-02T03:18:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3475b661607e6d2c72460ea381ee856726128259'/>
<id>3475b661607e6d2c72460ea381ee856726128259</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>file2lastrev.rb: separate options for `Output` and `VPath`</title>
<updated>2022-11-02T03:38:03+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-02T02:37:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ac06951c31c59781951a70788e4b0de2aa3d481c'/>
<id>ac06951c31c59781951a70788e4b0de2aa3d481c</id>
<content type='text'>
So the `--srcdir` option in this file can override the same option in
`VPath`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So the `--srcdir` option in this file can override the same option in
`VPath`.
</pre>
</div>
</content>
</entry>
<entry>
<title>file2lastrev.rb: use output.rb for the options</title>
<updated>2022-11-01T05:34:05+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-01T03:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6bf458eefdac6e03fe4f2989b6cf08ad6a838520'/>
<id>6bf458eefdac6e03fe4f2989b6cf08ad6a838520</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>file2lastrev.rb: rename output as format</title>
<updated>2022-11-01T05:34:05+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-01T02:43:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7e6e94262c9c916cb22dc9015be0e99659018c1f'/>
<id>7e6e94262c9c916cb22dc9015be0e99659018c1f</id>
<content type='text'>
Also:
- format -&gt; time_format
- output -&gt; formatter
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:
- format -&gt; time_format
- output -&gt; formatter
</pre>
</div>
</content>
</entry>
<entry>
<title>file2lastrev.rb: Refactor VCS directory search</title>
<updated>2022-10-12T13:24:53+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-12T13:03:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=80da7250c5d7c862e3c1e1431683a1f1211a4d9c'/>
<id>80da7250c5d7c862e3c1e1431683a1f1211a4d9c</id>
<content type='text'>
Search VCS directory after other options are in effective, i.e.,
`--srcdir=nonexitent --suppress_not_found` options, as well as the
reverse order case, should print the current date only and exit
successfully.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Search VCS directory after other options are in effective, i.e.,
`--srcdir=nonexitent --suppress_not_found` options, as well as the
reverse order case, should print the current date only and exit
successfully.
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce `VCS::Null` for fallback</title>
<updated>2022-09-30T01:39:42+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-09-29T11:03:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5a5644dadcd5e00b571d0029af4d96849e254cd4'/>
<id>5a5644dadcd5e00b571d0029af4d96849e254cd4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fallback to VCS.release_date on VCS::NotFoundError</title>
<updated>2022-09-17T13:24:10+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-09-17T13:24:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=33c6dd2cc89c27bbf406508ec39038a181fb99bc'/>
<id>33c6dd2cc89c27bbf406508ec39038a181fb99bc</id>
<content type='text'>
when -q is given.

One of the RubyCI servers, freebsd12, had a broken git environment:

```
$ git show
fatal: detected dubious ownership in repository at '/usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby'
To add an exception for this directory, call:

        git config --global --add safe.directory /usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby
```

tool/lib/vcs.rb doesn't work normally for that server.
Even for such cases, we'd like to generate a usable revision.h.

So this patch lets revision.h fallback to default VCS.release_date
when VCS::NotFoundError is raised.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
when -q is given.

One of the RubyCI servers, freebsd12, had a broken git environment:

```
$ git show
fatal: detected dubious ownership in repository at '/usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby'
To add an exception for this directory, call:

        git config --global --add safe.directory /usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby
```

tool/lib/vcs.rb doesn't work normally for that server.
Even for such cases, we'd like to generate a usable revision.h.

So this patch lets revision.h fallback to default VCS.release_date
when VCS::NotFoundError is raised.
</pre>
</div>
</content>
</entry>
<entry>
<title>Auto-generate the release date on version.h from git CommitDate (#6382)</title>
<updated>2022-09-17T12:16:06+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-09-17T12:16:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=38a7a13ac6ed6bba2584def7d7121257eb85e051'/>
<id>38a7a13ac6ed6bba2584def7d7121257eb85e051</id>
<content type='text'>
* Auto-generate the release date on version.h

from git CommitDate

* Generate revision.h on mswin</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Auto-generate the release date on version.h

from git CommitDate

* Generate revision.h on mswin</pre>
</div>
</content>
</entry>
</feed>
