Commit Briefs
sort and de-duplicate work tree path command line arguments
This is important in cases like 'got diff file.txt file.txt' which should only show the diff for file.txt once. suggested by kn@
fix a segfault in edscript() introduced by my previous commit
Found by our cherrypick regression tests.
fix merging of files which contain a dot on a line by itself
Annoying bug which we inherited from OpenRCS which inherited it from OpenBSD's diff3 program. ok tracey millert
speed up 'got histedit -l' and 'got rebase -l'
Cache commit timestamps in struct got_reference in case we are sorting references by commit timestamp. This avoids opening and closing commits every time we compare two references with each other. ok thomas.adam
implement 'got diff -c' for diffing commits with optional filtering by path
Need for filtering by path sugggested by kn@ ok naddy@
make got_repo_match_object_id() filter tags by the requested object type
Potentially this function could return objects of a type that was not requested. Problem found by code inspection. This change does not affect any of our existing tests.
Ignore tags files
OK stsp
portable: release 0.61 (tags/0.61)
Update configure.ac and CHANGELOG for 0.61
gotadmin: include gotadmin.1 in dist
When building the dist tarball, include its man page.
portable: remove extraneous strerror_r check
On a __GLIBC__ system, we need to use __xpg_strerror_r() -- this is already checked for, so simply one of these checks to reduce code changes from upstream.
regress: provide a sed wrapper
In order to portably handle the difference in how 'sed -i' works between *BSD and Linux, provide a wrapper to invoke the underying system sed(1) based on which OSTYPE is in use.
regress: use gdate/gln if on *BSD
To minimise the amount of churn between the difference in date(1) and ln(n) semantics, use gdate and gln from coreutils.
regress: enable tests
Enable the compilation and execution of the tests under regress/
portable: propagate AM_CFLAGS/AM_CPPFLAGS
Allow for warnings via AM_CFLAGS in a common Makefile, and let those values propagate to all other Makefiles. Currently the more useful checks are disabled until upstream changes are made to reduce warnings. While here, also fix the version string to remove quotes.
add test for merge result when lines are inserted at the top of a file
Based on a patch by Omar Polo
add support for multiple path arguments to 'got diff'
positive feedback from Omar and kn ok kn