{"thread":{"id":"6422","subject":"[PATCH] Use standard -t option for touch.","startedAt":"2007-01-18T10:18:51Z","lastAt":"2007-01-19T16:58:15Z","messageCount":4,"participants":["Simon 'corecode' Schubert","Johannes Schindelin","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"31957","messageId":"20070118102814.0C32FA914@diphong.localdomain","threadId":"6422","inReplyTo":null,"subject":"[PATCH] Use standard -t option for touch.","fromName":"Simon 'corecode' Schubert","fromEmail":"corecode@fs.ei.tum.de","sentAt":"2007-01-18T10:18:51Z","receivedAt":"2007-01-18T10:18:51Z","isPatch":true,"sender":{"key":"corecode@fs.ei.tum.de","avatar":"https://gravatar.com/avatar/eff9dbf0cdac0d1e6a6cd7ed0e50763edcb376b493b5253a35ff167918ad79e1?d=mp&s=160"},"body":"Non-GNU touch do not have the -d option to take free form\ndate strings.  The POSIX -t option should be more widespread.\nFor this to work, date needs to output YYYYMMDDHHMM.SS date strings.\n\nSigned-off-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>\n---\n t/t4200-rerere.sh |   24 ++++++++++++------------\n 1 files changed, 12 insertions(+), 12 deletions(-)\n\ndiff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh\nindex 5ee5b23..91be272 100755\n--- a/t/t4200-rerere.sh\n+++ b/t/t4200-rerere.sh\n@@ -120,29 +120,29 @@ case \"$(date -d @11111111 +%s 2>/dev/null)\" in\n \tjust_over_15_days_ago=$(($now-1-15*86400))\n \talmost_60_days_ago=$(($now+60-60*86400))\n \tjust_over_60_days_ago=$(($now-1-60*86400))\n-\tpredate1=\"$(date -d \"@$almost_60_days_ago\" +%c)\"\n-\tpredate2=\"$(date -d \"@$almost_15_days_ago\" +%c)\"\n-\tpostdate1=\"$(date -d \"@$just_over_60_days_ago\" +%c)\"\n-\tpostdate2=\"$(date -d \"@$just_over_15_days_ago\" +%c)\"\n+\tpredate1=\"$(date -d \"@$almost_60_days_ago\" +%Y%m%d%H%M.%S)\"\n+\tpredate2=\"$(date -d \"@$almost_15_days_ago\" +%Y%m%d%H%M.%S)\"\n+\tpostdate1=\"$(date -d \"@$just_over_60_days_ago\" +%Y%m%d%H%M.%S)\"\n+\tpostdate2=\"$(date -d \"@$just_over_15_days_ago\" +%Y%m%d%H%M.%S)\"\n \t;;\n *)\n \t# it is not GNU date. oh, well.\n-\tpredate1=\"$(date)\"\n-\tpredate2=\"$(date)\"\n-\tpostdate1='1 Oct 2006 00:00:00'\n-\tpostdate2='1 Dec 2006 00:00:00'\n+\tpredate1=\"$(date +%Y%m%d%H%M.%S)\"\n+\tpredate2=\"$(date +%Y%m%d%H%M.%S)\"\n+\tpostdate1='200610010000.00'\n+\tpostdate2='200612010000.00'\n esac\n \n-touch -m -d \"$predate1\" $rr/preimage\n-touch -m -d \"$predate2\" $rr2/preimage\n+touch -m -t \"$predate1\" $rr/preimage\n+touch -m -t \"$predate2\" $rr2/preimage\n \n test_expect_success 'garbage collection (part1)' 'git rerere gc'\n \n test_expect_success 'young records still live' \\\n \t\"test -f $rr/preimage -a -f $rr2/preimage\"\n \n-touch -m -d \"$postdate1\" $rr/preimage\n-touch -m -d \"$postdate2\" $rr2/preimage\n+touch -m -t \"$postdate1\" $rr/preimage\n+touch -m -t \"$postdate2\" $rr2/preimage\n \n test_expect_success 'garbage collection (part2)' 'git rerere gc'\n \n-- \n1.5.0.rc1.g8bef\n"},{"id":"31959","messageId":"Pine.LNX.4.63.0701181147500.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6422","inReplyTo":"20070118102814.0C32FA914@diphong.localdomain","subject":"Re: [PATCH] Use standard -t option for touch.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-01-18T10:49:09Z","receivedAt":"2007-01-18T10:49:09Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nSimon, please don't use \"undisclosed recipients\". After all, this is \n_open_ source, and you make it really inconvenient to reply.\n\nOn Thu, 18 Jan 2007, Simon 'corecode' Schubert wrote:\n\n> Non-GNU touch do not have the -d option to take free form\n> date strings.  The POSIX -t option should be more widespread.\n> For this to work, date needs to output YYYYMMDDHHMM.SS date strings.\n\nI just checked on an SGI machine, and it has \"-t\". In related news, it \nalso has /usr/bin/printf.\n\nCiao,\nDscho\n"},{"id":"31963","messageId":"45AF5E76.7020503@fs.ei.tum.de","threadId":"6422","inReplyTo":"Pine.LNX.4.63.0701181147500.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: [PATCH] Use standard -t option for touch.","fromName":"Simon 'corecode' Schubert","fromEmail":"corecode@fs.ei.tum.de","sentAt":"2007-01-18T11:48:06Z","receivedAt":"2007-01-18T11:48:06Z","isPatch":true,"sender":{"key":"corecode@fs.ei.tum.de","avatar":"https://gravatar.com/avatar/eff9dbf0cdac0d1e6a6cd7ed0e50763edcb376b493b5253a35ff167918ad79e1?d=mp&s=160"},"body":"Johannes Schindelin wrote:\n> Simon, please don't use \"undisclosed recipients\". After all, this is \n> _open_ source, and you make it really inconvenient to reply.\n\noh, sorry.  i just feed git-format-patch into sendmail. i'll need to teach git-send-email to accept - for stdin.\n\n>> Non-GNU touch do not have the -d option to take free form\n>> date strings.  The POSIX -t option should be more widespread.\n>> For this to work, date needs to output YYYYMMDDHHMM.SS date strings.\n> I just checked on an SGI machine, and it has \"-t\". In related news, it \n> also has /usr/bin/printf.\n\nthanks for checking!\n\ncheers\n  simon\n\n-- \nServe - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /\"\\\nWork - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \\ /\nParty Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \\\nDude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \\\n\n"},{"id":"32072","messageId":"7vfya7hs2g.fsf@assigned-by-dhcp.cox.net","threadId":"6422","inReplyTo":"20070118102814.0C32FA914@diphong.localdomain","subject":"Re: [PATCH] Use standard -t option for touch.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-01-19T16:58:15Z","receivedAt":"2007-01-19T16:58:15Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Hhmmmmm.\n\nThis still does not seem to fix the breakage I am seeing on\nOpenBSD.\n\nBut thanks anyway for trying.\n"}]}