Debian Codegraph @

Changes

raw
1 Revision history for Git-Repository
2
3 1.326 2026-01-18 BOOK
4 [ENHANCEMENTS]
5 - Add input_record_separator option to Git::Repository::Command::new (GNUSTAVO)
6 (Fix for RT #134239, GH #21)
7 - Use a proper temporary directory in t/05-try_git.t (PPISAR)
8 (Fix for GH #24)
9 - GIT_EDITOR fatal behaviour was likely never important (GREGOA, HAKONH)
10 (Fix for RT #155717, GH #23, GH #25)
11 - Workaround change of behaviour in git 2.38.1 (CVE-2022-39253) (JANPAZ)
12 (Fix for RT #144889, GH #22, GH #25)
13
14 1.325 2021-06-01 BOOK
15 [ENHANCEMENTS]
16 - Prevent Test::Git from clobbering its arguments in some cases
17 [TESTS]
18 - Stop t/24-errors.t from failing with git >= 2.30.0-rc0
19 (Fix RT #133951, RT #134115, GH #20)
20
21 1.324 2019-09-01 BOOK
22 [DOCUMENTATION]
23 - Minor documentation updates
24 [EXAMPLES]
25 - Add --force and --docs options to build-git
26
27 1.323 2018-11-22 BOOK
28 [TESTS]
29 - Match new error message format in git 2.19.0 (RT #127282 SREZIC)
30
31 1.322 2018-04-21 BOOK
32 [DOCUMENTATION]
33 - Detail what Git::Repository::Command does to the environment
34 [TESTS]
35 - Match new error message format in git 2.17. (HMBRAND and JANPAZ)
36 - Fixed the 'git-collection' link for extended ("all gits") tests
37
38 1.321 2017-10-01 BOOK
39 - Various small improvements to the Tutorial (with help from Ron Savage)
40 - Minor code changes (with help from E. Choroba)
41 - Minor fix to eg/build-git
42
43 1.320 2016-06-12 BOOK
44 [ENHANCEMENTS]
45 - Rewrite Git::Repository::Command's final_output() using
46 System::Command's loop_on()
47 [TESTS]
48 - Fix a test that failed with Git versions with "comments" (Samit Badle)
49
50 1.319 2016-05-18 BOOK
51 [DEPRECATION]
52 - The has_git() test function from Test::Git is now obsoleted by
53 Test::Requires::Git. It will issue a warning for now, and will be
54 removed in a future version.
55 [DOCUMENTATION]
56 - Added tutorial entry "Initialize a test repository with a bundle"
57 - Updated the "Sort git versions" tutorial entry with Git::Version::Compare
58 [TESTS]
59 - Use Test::Requires::Git instead of has_git to check if git is available
60 - Fix a number of failing tests related to an incorrect plan (oops)
61 or local git commit hooks.
62
63 1.318 2016-03-12 BOOK
64 [ENHANCEMENTS]
65 - Extend version support to all existing version
66 - Let Git::Version::Compare handle all version comparison code
67 - eg/build-git can now build all Git versions since 1.0.0
68 [DOCUMENTATION]
69 - Minor documentation updates
70 - URL corrections by DOLMEN
71
72 1.317 2016-02-13 BOOK
73 [ENHANCEMENTS]
74 - improved git binary detection in Git::Repository::Command
75 - fixed version comparisons for 1.0.0a and 1.0.0b under Perl 5.6
76 - test_repository( clone => ... ) now dies with a useful message
77 when trying to call it with a broken Git
78 - Git::Repository::Util provides utility functions for Git stuff
79 - eg/build-git: a utility to build and install any Git version
80 [DOCUMENTATION]
81 - Tutorial entry: "Ignore the system and global configuration files"
82 - spelling fix (RT #110027 by Gregor Herrmann)
83 [TEST]
84 - fix RT #89086 (reported by Alex Raguero)
85 - new test: t/test-all-git.t to run the test suite against a directory
86 full of git builds (if available)
87 - tested against 513 versions of git (including all RC),
88 from 1.0.0 to 2.7.1
89
90 1.316 2015-12-02 BOOK
91 [ENHANCEMENTS]
92 - avoid a warning if the filehandles have already been closed
93 (related to System::Command 1.114 'interactive' option)
94 [DOCUMENTATION]
95 - add examples for `git log` and using callbacks with `$r->run`
96 in Git::Repository::Tutorial
97 [TESTS]
98 - git-2.5.2 test suite compatibility fix (Petr Šabata)
99
100 1.315 2015-07-29 BOOK
101 [ENHANCEMENTS]
102 - Show exit status in 'unknown git error' message (TIMB)
103
104 1.314 2015-05-23 BOOK
105 [ENHANCEMENTS]
106 - simplified the internals of version comparisons
107 - give the correct result for comparisons involving 1.0.0a and 1.0.0b
108
109 1.313 2015-03-21 BOOK
110 [DOCUMENTATION]
111 - add a section about Git::Raw in the SEE ALSO (written by its author)
112 - document the availability of Git.pm on CPAN (RT #100957)
113 - added the list of contributors to the META file
114
115 1.312 2014-08-03 BOOK
116 [ENHANCEMENTS]
117 - test_repository() uses `git init-db` for init under older git
118 versions (although the test suite hasn't yet been adapted to
119 support really old versions of git)
120 - fixed a typo in the error message for test_repository()
121 [TESTS]
122 - made some tests for failure a little more lax when looking for
123 the "fatal:" string in the errput (i.e. look for it at the beginning
124 of any line, not just the firts)
125 [DOCUMENTATION]
126 - various minor documentation improvements
127 - the "OTHER GIT WRAPPERS" is really a "SEE ALSO" section
128
129 1.311 2014-03-09 BOOK
130 [ENHANCEMENTS]
131 - avoid warnings from _is_git() when we get nothing out of "git"
132 [DOCUMENTATION]
133 - pod syntax fix
134 - fix typo in Todd Rinaldo's name
135 - acknowledge Nathan Nutter's help in designing the clone option
136 to test_repository()
137
138 1.310 2014-01-17 BOOK
139 [ENHANCEMENTS]
140 - add support for a 'clone' option in test_repository()
141 [DOCUMENTATION]
142 - better document the test_repository() options
143 - better document the options hash
144 - make method names easier to link to throughout the documentation
145 [TESTS]
146 - tested against 350 versions of git (including all RC),
147 from 1.5.0.rc0 to 1.8.5.3
148
149 1.309 2013-11-02 BOOK
150 [TESTS]
151 - replace use_ok by simply running perl -M$module -e1
152 [DOCUMENTATION]
153 - some guidelines for naming attributes in plugins
154 [PACKAGING]
155 - split Git::Repository::Plugin::Log and its supporting modules
156 (Git::Repository::Log and Git::Repository::Log::Iterator) out
157 in their own distribution (Git-Repository-Plugin-Log) as of
158 version 1.309 of both distributions
159
160 1.308 2013-08-08 BOOK
161 [ENHANCEMENTS]
162 - require System-Command 1.103, since 1.102 was somewhat broken
163 [DOCUMENTATION]
164 - new tutorial item based on RT#87334
165
166 1.307 2013-07-26 BOOK
167 [ENHANCEMENTS]
168 - avoid creating zombie processes in _is_git
169 - require the latest System-Command, as it properly works with
170 FCGI, Plack et al.
171 [DOCUMENTATION]
172 - various minor documentation improvements
173
174 1.306 2013-07-02 BOOK
175 [DOCUMENTATION]
176 - document how to run git from cwd in Git::Repository::Tutorial
177 (follow-up of RT #86154, thanks to Daniel B. Boorstein (DANBOO))
178 - document how to avoid the translation of Git messages by using
179 LC_ALL=C in Git::Repository::Tutorial
180 [TESTS]
181 - made tests more robust no matter which locale is defined
182 (thanks to Lars Dieckow (DAXIM))
183
184 1.305 2013-06-16 BOOK
185 [DOCUMENTATION]
186 - list the 'fatal' option in the documentation for run()
187 [TESTS]
188 - various fixes for t/24-errors.t
189 (mostly for Win32, thanks to Christian Walde (MITHALDU))
190
191 1.304 2013-05-25 BOOK
192 [ENHANCEMENTS]
193 - the new 'fatal' option makes it possible to define in detail
194 which exit status codes will make run() die, in addition to
195 the defaults 128 and 129 (many thanks to Grant McLean for
196 a great discussion about this, which inspired the feature)
197 [DOCUMENTATION]
198 - add a section about 'fatal' in Git::Repository::Tutorial
199 [TESTS]
200 - let Dist::Zilla manage the author tests
201 - fixed tests with older gits, and also moved requirements
202 for some tests a little bit further in the past
203 - tested against 326 versions of git (including all RC),
204 from 1.5.0.rc0 to 1.8.3.rc3
205
206 1.303 2013-04-28 BOOK
207 [ENHANCEMENTS]
208 - now depends on System::Command 1.100 for proper Win32 support
209 - thanks to a lot of testing help from Christian Walde (MITHALDU)
210 the test suite passes on Win32 (by skipping tests of little
211 importance)
212
213 1.302 2013-03-01 BOOK
214 [ENHANCEMENTS]
215 - Git::Repository::Plugin::Log is now able to parse commits
216 with completely empty log messages
217 - Git::Repository::Plugin::Log is now able to parse commits
218 containing multiline headers (like gpgsig and mergetag)
219
220 1.301 2013-01-21 BOOK
221 [DEPRECATION]
222 - the following Git::Repository methods are obsolete,
223 and will die when called: create, wc_path, repo_path
224 - the following parameters to Git::Repository->new are obsolete,
225 and will cause the constructor to die: repository, working_copy
226 [PACKAGING]
227 - switch to Dist::Zilla for maintaining the distribution
228
229 1.300 2013-01-07 BOOK
230 [ENHANCEMENTS]
231 - fixed support for overloaded objects (e.g. Path::Class objects)
232 in Git::Repository::Command (RT #82373)
233 - fixed Git::Repository::Log::Iterator to work with older gits
234 when disabling colored output (thanks to Dominic Humphries)
235 - fixed some cases where Git::Repository::Command and Git::Repository
236 new() methods ignored some of their parameters. They now die when
237 passed ambiguous or unexpected parameters.
238 (follow-up of RT #82373, thanks to Michael G. Schwern)
239
240 1.29 2012-12-04 BOOK
241 [ENHANCEMENTS]
242 - added support for callbacks in run()
243 [DOCUMENTATION]
244 - minor documentation improvements
245
246 1.28 2012-11-04 BOOK
247 [ENHANCEMENTS]
248 - disabled colored output from logs in Git::Repository::Log::Iterator
249 - wc_path() and repo_path() accessors are deprecated and now warn
250 - improved the inter-documentation links by liberal use of L<>
251 [TESTS]
252 - ignore commit hooks that may be included with templates (RT #80593)
253 - test for quiet won't fail if no identity is defined (RT #80321)
254
255 1.27 2012-10-11 BOOK
256 [ENHANCEMENTS]
257 - Git::Repository::Command skips non-executable files when searching
258 for a git command in the PATH
259 [TEST]
260 - Fixed tests failing with a directory named git in the PATH (RT #80117)
261
262 1.26 2012-08-01 BOOK
263 [ENHANCEMENTS]
264 - added a 'quiet' option to silence warnings
265 - improved carp level for the run() method
266 [DOCUMENTATION]
267 - provide an example for the 'quiet' option in
268 Git::Repository::Tutorial
269
270 1.25 2011-12-27 BOOK
271 [ENHANCEMENTS]
272 - None. It's as good as 1.24, without the stupid test fail.
273 [TESTS]
274 - fixed a test plan when a git binary is not available
275
276 1.24 2011-12-26 BOOK
277 [ENHANCEMENTS]
278 - the command cache for _is_git() is now properly populated
279 when the git option is a command with options (e.g. sudo)
280 - _is_git() still finds git when the PATH contains a directory
281 named git in a better position (RT #72154)
282 - Fix spelling errors fixed in Debian (RT #73079)
283 - Defend against changes to $/ (RT #71621)
284
285 1.23 2011-12-04 BOOK
286 [TESTS]
287 - made t/07-version.t pass when /tmp is mounted noexec (RT #72610)
288
289 1.22 2011-09-06 BOOK
290 [TESTS]
291 - made t/21-submodule.t pass with git > 1.7.6.0 (RT #70585)
292 - made t/21-submodule.t pass with git < 1.5.4.4
293
294 1.21 2011-07-11 BOOK
295 [ENHANCEMENTS]
296 - fix a deep recursion caused by a change in System::Command 1.05
297 (thanks to Thomas Klausner)
298 [TESTS]
299 - made t/21-submodule.t pass when git is not available or too old
300 or no identity is configured
301
302 1.20 2011-06-09 BOOK
303 [ENHANCEMENTS]
304 - None. It's as good as 1.19, without the stupid test fail.
305 [TESTS]
306 - one test always failed if run outside of a git repository,
307 so I didn't detect it, but all testers did :-(
308 Kazuhiro Shibuya provided a patch!
309
310 1.19 2011-06-08 BOOK
311 [ENHANCEMENTS]
312 - new final_output() method to Git::Repository::Command,
313 that does the git-specific error checking when collecting
314 the final output
315 - Git::Repository::Log::Iterator will now properly die/warn
316 when the log command is incorrect (thanks to Lasse Makholm
317 for the bug report and proposed patch)
318 - Git::Repository::Command now supports an arrayref as the 'git'
319 option value, thus allowing calling wrappers like sudo
320 (thanks to Dominic Humphries for the initial patch)
321 [DOCUMENTATION]
322 - moved the HOWTO part of the doc to Git::Repository::Tutorial
323
324 1.18 2011-04-16 BOOK
325 [ENHANCEMENTS]
326 - the create() method was fragile (parsing the output of
327 porcelain commands) and is now obsolete
328 [DOCUMENTATION]
329 - added an example for running git shortlog (RT #66783)
330
331 1.17 2011-02-01 BOOK
332 [ENHANCEMENTS]
333 - Git::Repository::Command now uses System::Command internally
334 [TESTS]
335 - skip some tests that needed a specific version of git
336 - delete GIT_EDITOR in tests that check it (Nigel Metheringham)
337 [BUGS]
338 - getting a working Win32 implementation is now delegated
339 to System::Command
340
341 1.16 2011-01-16 BOOK
342 [ENHANCEMENTS]
343 - the reaping of the child process is now delegated to a special
344 Git::Repository::Command::Reaper object.
345 Code such as my $fh = Git::Repository::Command->new(@cmd)->stdout()
346 will now work as expected.
347 [TESTS]
348 - Test::Git::has_git() now accepts the usual options hash
349 - fixed tests to pass again under Perl 5.6.2
350
351 1.15 2011-01-11 BOOK
352 [ENHANCEMENTS]
353 - experimental MSWin32 full support using pipes
354 (thanks to BinGOs for pointing me to a perlmonks post by ikegami,
355 that contained working code)
356 - Git::Repository::Log now has a raw_message() accessor, that
357 returns the message with 4-space indent output by git log
358 (Note that this change is INCOMPATIBLE with previous versions,
359 in which message() returned the indented log message, and you
360 had to make up your own "clean" version).
361 [TESTS]
362 - no more skipping tests under MSWin32, but there are some issues
363 with the win32 code, as sometimes the output or errput of the git
364 command is lost (HELP!)
365 - bundle Test::Git, a module providing a few utility functions
366 for testing code requiring a git repository
367
368 1.14 2010-10-27 BOOK
369 [ENHANCEMENTS]
370 - complete rewrite of _has_git, which was renamed to _is_git,
371 with a much improved cache for the "is this git valid?" info
372 - calling new() with the 'git' option will now work correctly
373 when there is no git in the PATH (fixes RT bug #62283,
374 reported by Todd Rinaldo)
375 - improved the plugin system design (thanks to Aristotle Pagaltzis)
376 - fixes for making Git::Repository work with modules that do
377 bad things to STDIN, STDOUT and STDERR (thanks to Todd Rinaldo)
378 [TESTS]
379 - improved tests on Win32 (thanks to Olivier Raginel (BABAR)
380 for giving me access to a Win32 VM with Git installed)
381 [BUGS]
382 - sadly, the work on Win32 showed that Git::Repository doesn't
383 fully support that platform, but the test suite safely skips
384 the tests that hang under Win32. I hope to fix this over time.
385
386 1.13 2010-10-18 BOOK
387 [ENHANCEMENTS]
388 - using 'git' as an option of a Git::Repository object now works
389 as expected
390 - version() also accepts option hashes
391 - plugin system to load new keywords in the Git::Repository namespace
392 - Git::Repository::Plugin::Log provides the log() method with the
393 help of Git::Repository::Log and Git::Repository::Log::Iterator
394 (Thanks to Todd Rinaldo and Aristotle Pagaltzis for discussions
395 and ideas about what became the plugin system.)
396 [TESTS]
397 - tested against 120+ versions of git, including all versions
398 of the 1.6.* and 1.7.* branches up until 1.7.3.1
399
400 1.12 2010-10-04 BOOK
401 [ENHANCEMENTS]
402 - the input option can now be empty: it means "close stdin first"
403 - if the input option is undef, it still means "don't touch stdin"
404
405 1.11 2010-10-02 BOOK
406 [ENHANCEMENTS]
407 - fixed a bug in version comparison
408 (version 1.7.1.209.gd60ad81 is smaller than 1.7.1.1.1.g66bd8ab)
409 [TESTS]
410 - skip tests that fail between between versions 1.7.1 and 1.7.1.1
411 (thanks to Sébastien Aperghis-Tramoni for the private report)
412 - fix abs_path dying on Win32 with a path to a non-existent file
413 (again)
414
415 1.10 2010-09-24 BOOK
416 [ENHANCEMENTS]
417 - Git::Repository::Command doesn't write to the command stdin
418 if the input option is set to something empty
419 - Git::Repository::Command now has a version number too
420 [DOCUMENTATION]
421 - minor copy editing by Aristotle Pagaltzis
422
423 1.09 2010-08-18 BOOK
424 [ENHANCEMENTS]
425 - now handle SIGPIPE when writing to git stdin
426 (fixes RT bug #60482, reported by Todd Rinaldo (TODDR))
427 - new() ignores the 'input' option for git commands called
428 during initialization
429 [TESTS]
430 - t/20-simple.t should stop failing with "Non-zero wait status: 13"
431 as it has been doing since 1.05.
432
433 1.08 2010-08-17 BOOK
434 [ENHANCEMENTS]
435 - Git::Repository->new() now supports git versions older than 1.5.3
436 [TESTS]
437 - ensure we have some identity when committing
438 - make tests require the lowest git version they support
439
440 1.07 2010-08-14 BOOK
441 [ENHANCEMENTS]
442 - support for option hash in create(), which is attached to the
443 returned Git::Repository object
444 - accessors for Git::Repository::Command objects
445 (including a 'cmdline' accessor)
446 - removed the wc_subdir() attribute, which is useless and
447 redundant with the cwd option
448 - completely rewrote the repo_path and wc_path computation in new()
449 - support new (post-v1.7.1) clone output in create()
450 - less confusing names for options and attributes:
451 + new() now takes git_dir and work_tree
452 (instead of repository and working_copy)
453 + the corresponding attributes are now git_dir and work_tree
454 (instead of repo_path and wc_path)
455 + the older options and attributes are being kept for compatibility
456 [TESTS]
457 - tests for the case when GIT_DIR is not .git (Mark Lawrence)
458 - protect git log tests against format.pretty (Aristotle Pagaltzis)
459 - tests for backward-compatibility with repository, working_copy, etc.
460
461 1.06 2010-07-03 BOOK
462 [ENHANCEMENTS]
463 - none
464 [TESTS]
465 - just make sure all tests fail gracefully when git is not installed
466
467 1.05 2010-07-02 BOOK
468 [ENHANCEMENTS]
469 - version() method returns the git binary version
470 - version_eq(), version_gt(), etc allow simple version comparison
471 for the current git binary
472 - allow providing a default option hash to Git::Repository->new()
473 [DOCUMENTATION]
474 - Document git init behaviour changed in 1.6.5
475 [TESTS]
476 - extensive version comparison tests
477
478 1.04 2010-06-27 BOOK
479 [ENHANCEMENTS]
480 - create() now supports "reinitializing existing Git repository"
481 (thanks to Michael G. Schwern)
482 [TESTS]
483 - test a few extra cases
484
485 1.03 2010-06-18 BOOK
486 [ENHANCEMENTS]
487 - fix module to work with Perl 5.6.x
488 - support GIT_DIR & GIT_WORK_TREE environment variables, when
489 run without a Git::Repository object, and even allow an
490 override when there is one, for those who know what they're
491 doing
492 [TESTS]
493 - fix the case where /tmp is a symlink to some other place
494 - fix abs_path dying on Win32 with a path to a non-existent file
495
496 1.02 2010-06-15 BOOK
497 [ENHANCEMENTS]
498 - sensible defaults for Git::Repository->new() without parameters
499 - correctly setup Git::Repository if working_copy points to a
500 subdirectory of the actual work tree
501 - wc_subdir() points to the given subdirectory
502 [TESTS]
503 - skip tests that fail if /tmp is a git repository
504
505 1.01 2010-06-14 BOOK
506 [ENHANCEMENTS]
507 - consider git failing with a usage message as a fatal error
508 [TESTS]
509 - don't bother testing too much if git is older than v1.6.0
510
511 1.00 2010-06-12 BOOK
512 [YET ANOTHER GIT WRAPPER]
513 - Git::Repository provides context and a simple run() method
514 - Git::Repository::Command is the actual workhorse
515 - 94% test coverage
516