From: Eric Sunshine <sunshine@sunshineco.com>
To: Gabor Bernat <bernat@primeranks.net>
Cc: Jeff King <peff@peff.net>, Junio C Hamano <gitster@pobox.com>,
Git List <git@vger.kernel.org>
Subject: Re: [FEATURE REQUEST] Filter-branch extend progress with a simple estimated time remaning
Date: Sat, 29 Aug 2015 23:15:49 -0400 [thread overview]
Message-ID: <CAPig+cTCQa6Vev2u4V-CbU1B5BGdrSk+8bjLE2Y1YBLog5Ehnw@mail.gmail.com> (raw)
In-Reply-To: <CANy2qHfuFB6zJc0x_gDGT9MXtwQn2Jkb7v1mWyKoA8g1MjgGBA@mail.gmail.com>
(Please don't top-post on this list.)
On Sat, Aug 29, 2015 at 11:00 PM, Gabor Bernat <bernat@primeranks.net> wrote:
> Reading after it, I think the most close we can get with this is, awk
> 'BEGIN { print strftime("%c", 1271603087); }; and just ignore setting
> this value (and avoid displaying it) if that fails too. Do you agree?
strftime() in awk is a GNU-ism. It doesn't exist in awk on Mac OS X or
FreeBSD, or even the default awk on Linux (which is mawk on Linux
installations I've checked).
Most portable likely would be Perl, however, that's probably too
heavyweight inside a loop like this, even if called only once each N
iterations.
> On Sun, Aug 30, 2015 at 3:20 AM, Eric Sunshine <sunshine@sunshineco.com> wrote:
>> On Sat, Aug 29, 2015 at 9:29 AM, Gabor Bernat <bernat@primeranks.net> wrote:
>>> Amended, the latest version is at https://github.com/gaborbernat/git/commit/ :)
>>> Does this looks okay, should I create a patch from this?
>>
>> Excerpt:
>>
>> now=$(date +%s)
>> elapsed=$(($now - $start))
>> remaining_second=$((...))
>> eta=$(($now + $remaining_second))
>> finish_by=$(date -d "@$eta")
>>
>> Unfortunately, -d is not portable. On Mac OS X and FreeBSD, -d sets
>> the kernel's value for Daylight Saving Time, rather than displaying
>> the specified time as in Linux.
next prev parent reply other threads:[~2015-08-30 3:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 15:01 [FEATURE REQUEST] Filter-branch extend progress with a simple estimated time remaning Gabor Bernat
2015-08-25 17:12 ` Jeff King
2015-08-25 18:33 ` Junio C Hamano
2015-08-25 18:52 ` Jeff King
2015-08-25 18:54 ` Jeff King
2015-08-25 20:07 ` Gabor Bernat
2015-08-25 20:12 ` Eric Sunshine
2015-08-26 2:15 ` Jeff King
2015-08-29 9:50 ` Gabor Bernat
2015-08-29 13:29 ` Gabor Bernat
2015-08-30 1:20 ` Eric Sunshine
2015-08-30 3:00 ` Gabor Bernat
2015-08-30 3:15 ` Eric Sunshine [this message]
2015-08-30 8:04 ` Mikael Magnusson
2015-08-30 8:11 ` Gabor Bernat
2015-08-30 8:14 ` Mikael Magnusson
2015-08-30 8:14 ` Eric Sunshine
2015-08-30 16:52 ` Junio C Hamano
2015-08-30 16:58 ` Gabor Bernat
2015-08-30 19:53 ` Mikael Magnusson
2015-08-30 19:55 ` Eric Sunshine
2015-08-30 19:40 ` Eric Sunshine
2015-08-30 20:40 ` Eric Sunshine
2015-08-31 5:06 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPig+cTCQa6Vev2u4V-CbU1B5BGdrSk+8bjLE2Y1YBLog5Ehnw@mail.gmail.com \
--to=sunshine@sunshineco.com \
--cc=bernat@primeranks.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).