[PATCH] log: add %S option (like --source) to log --format

2018-12-30 Thread issac . trotts
From: Issac Trotts Make it possible to write for example git log --format="%H,%S" where the %S at the end is a new placeholder that prints out the ref (tag/branch) for each commit. Using %d might seem like an alternative but it only shows the ref for the last commit in the branch. Sig

Re: [PATCH] log: add %S option (like --source) to log --format

2018-12-30 Thread Issac Trotts
Hi Derrick, thanks for your feedback. I'll send out a new patch with the changes. On Fri, Dec 28, 2018 at 12:20 AM Derrick Stolee wrote: > > On 12/19/2018 3:33 AM, issac.tro...@gmail.com wrote: > > From: Issac Trotts > > > > Make it possible to write for example > > > > git log --forma

[PATCH 2/3] Add 'human' date format documentation

2018-12-30 Thread Stephen P. Smith
Display date and time information in a format similar to how people write dates in other contexts. If the year isn't specified then, the reader infers the date is given is in the current year. By not displaying the redundant information, the reader concentrates on the information that is different

[PATCH 1/3] Add 'human' date format

2018-12-30 Thread Stephen P. Smith
From: Linus Torvalds This adds --date=human, which skips the timezone if it matches the current time-zone, and doesn't print the whole date if that matches (ie skip printing year for dates that are "this year", but also skip the whole date itself if it's in the last few days and we can just say w

[PATCH 3/3] t0006-date.sh: add `human` date format tests.

2018-12-30 Thread Stephen P. Smith
The `human` date format varies based on two inputs: the date in the reference time which is constant and the local computers date which varies. Using hardcoded test expected output dates would require holding the local machines date and time constant which is not desireable. Alternatively, lettin

[PATCH 0/3] Add 'human' date format

2018-12-30 Thread Stephen P. Smith
Added documentation and tests for the previously submitted patch. The previous patch was rebased and the conflict in cache.h was resolved. Range diff for Linus' original code: 1: 74e8221b52 ! 1: dd8ea66414 Add 'human' date format @@ -26,6 +26,10 @@ Signed-off-by: Linus Torva

[PATCH v3.1 5/8] test-lib: set $TRASH_DIRECTORY earlier

2018-12-30 Thread SZEDER Gábor
A later patch in this series will need to know the path to the trash directory early in 'test-lib.sh', but $TRASH_DIRECTORY is set much later. Set $TRASH_DIRECTORY earlier, where the other test-specific path variables are set. Signed-off-by: SZEDER Gábor --- Updated the commit message, the diff

Re: [PATCH v3 5/8] test-lib: set $TRASH_DIRECTORY earlier

2018-12-30 Thread SZEDER Gábor
On Sun, Dec 30, 2018 at 08:16:26PM +0100, SZEDER Gábor wrote: > A later patch in this series will need to know the path to the trash > directory early in 'test-lib.sh', but $TRASH_DIRECTORY is set much > later. Furthermore, the path to the trash directory depends on the > '--root=' option, which,

Re: Git extra hook, pre-upload

2018-12-30 Thread Ævar Arnfjörð Bjarmason
On Sun, Dec 30 2018, Xheroz 128 wrote: > Currently, I’m doing my Final Year Project that requires a hook that executes > automatically on the server side of the repository, before the objects been > pulled to the client side, and after the objects have been pushed to the > server side, which

Git extra hook, pre-upload

2018-12-30 Thread Xheroz 128
Hello, My name is Kenneth Lee, a student at Teikyo University, Japan. Currently, I’m doing my Final Year Project that requires a hook that executes automatically on the server side of the repository, before the objects been pulled to the client side, and after the objects have been pushed to th

[PATCH v3 7/8] test-lib-functions: introduce the 'test_set_port' helper function

2018-12-30 Thread SZEDER Gábor
Several test scripts run daemons like 'git-daemon' or Apache, and communicate with them through TCP sockets. To have unique ports where these daemons are accessible, the ports are usually the number of the corresponding test scripts, unless the user overrides them via environment variables, and th

[PATCH v3 8/8] test-lib: add the '--stress' option to run a test repeatedly under load

2018-12-30 Thread SZEDER Gábor
Unfortunately, we have a few flaky tests, whose failures tend to be hard to reproduce. We've found that the best we can do to reproduce such a failure is to run the test script repeatedly while the machine is under load, and wait in the hope that the load creates enough variance in the timing of t

[PATCH v3 5/8] test-lib: set $TRASH_DIRECTORY earlier

2018-12-30 Thread SZEDER Gábor
A later patch in this series will need to know the path to the trash directory early in 'test-lib.sh', but $TRASH_DIRECTORY is set much later. Furthermore, the path to the trash directory depends on the '--root=' option, which, too, is parsed too late. Move parsing '--root=...' to the early optio

[PATCH v3 0/8] test-lib: add the '--stress' option to help reproduce occasional failures in flaky tests

2018-12-30 Thread SZEDER Gábor
To recap: this patch series tries to make reproducing rare failures in flaky tests easier: it adds the '--stress' option to our test library to run the test script repeatedly in multiple parallel jobs, in the hope that the increased load creates enough variance in the timing of the test's commands

[PATCH v3 6/8] test-lib: extract Bash version check for '-x' tracing

2018-12-30 Thread SZEDER Gábor
One of our test scripts, 't1510-repo-setup.sh' [1], still can't be reliably run with '-x' tracing enabled, unless it's executed with a Bash version supporting BASH_XTRACEFD (since v4.1). We have a lengthy condition to check the version of the shell running the test script, and disable tracing if i

[PATCH v3 3/8] test-lib: parse command line options earlier

2018-12-30 Thread SZEDER Gábor
'test-lib.sh' looks for the presence of certain options like '--tee' and '--verbose-log', so it can execute the test script again to save its standard output and error. It looks for '--valgrind' as well, to set up some Valgrind-specific stuff. These all happen before the actual option parsing loo

[PATCH v3 4/8] test-lib: consolidate naming of test-results paths

2018-12-30 Thread SZEDER Gábor
There are two places where we strip off any leading path components and the '.sh' suffix from the test script's pathname, and there are four places where we construct the name of the 't/test-results' directory or the name of various test-specific files in there. The last patch in this series will

[PATCH v3 2/8] test-lib: parse options in a for loop to keep $@ intact

2018-12-30 Thread SZEDER Gábor
'test-lib.sh' looks for the presence of certain options like '--tee' and '--verbose-log', so it can execute the test script again to save its standard output and error, and to do so it needs the original command line options the test was invoked with. The next patch is about to move the option par

[PATCH v3 1/8] test-lib: translate SIGTERM and SIGHUP to an exit

2018-12-30 Thread SZEDER Gábor
Right now if a test script receives SIGTERM or SIGHUP (e.g., because a test was hanging and the user 'kill'-ed it or simply closed the terminal window the test was running in), the shell exits immediately. This can be annoying if the test script did any global setup, like starting apache or git-dae

Re: [PATCH v2 2/7] test-lib: parse some --options earlier

2018-12-30 Thread SZEDER Gábor
On Mon, Dec 17, 2018 at 04:44:36PM -0500, Jeff King wrote: > On Tue, Dec 11, 2018 at 01:42:45PM +0100, SZEDER Gábor wrote: > > diff --git a/t/test-lib.sh b/t/test-lib.sh > > index 9a3f7930a3..efdb6be3c8 100644 > > --- a/t/test-lib.sh > > +++ b/t/test-lib.sh > > @@ -264,58 +264,65 @@ test "x$TERM"

[BUG] t0410 2.20.1 fails on NonStop NSX platform

2018-12-30 Thread Randall S. Becker
This is a bit of a head-scratcher. There are two NonStop platforms, which behave essentially the same way. One, NSE, uses ia64, while NSX uses x64. There are subtle differences in ksh and bash for the platforms based on what is released when. The NSE platform has no problem running t0410 in Jenkins