{ "info": { "author": "ton1517", "author_email": "tonton1517@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Utilities" ], "description": "git-ls-date\n===========\ngit-ls-date is git sub command shows first and last commit date.\n\nExamples\n========\n\nBasic\n------\ndefault option is\n\n- date = short\n- format = \"{fd} {fh} {ld} {lh} {f}\"\n\n::\n\n $ git ls-date\n 2013-11-05 7ab1b16 2013-11-05 7ab1b16 README.rst\n 2013-11-07 342ad26 2013-11-10 2826492 git_ls_date.py\n\nHow long ago?\n------------------\n::\n\n git ls-date --date relative --format \"first commit is {fd: <20} | {f}\"\n first commit is 6 days ago | .gitignore\n first commit is 3 days ago | .python-version\n first commit is 3 days ago | LICENSE\n first commit is 77 minutes ago | MANIFEST.in\n first commit is 6 days ago | README.rst\n first commit is 3 days ago | git_ls_date.py\n first commit is 3 days ago | setup.py\n first commit is 3 days ago | test_git_ls_date.py\n first commit is 30 hours ago | testfiles/testdirectory/testfile4\n first commit is 30 hours ago | testfiles/testfile1\n first commit is 30 hours ago | testfiles/testfile2\n first commit is 30 hours ago | testfiles/testfile3\n first commit is 3 days ago | tox.ini\n\nOnly show commit hash\n----------------------\n::\n\n $ git ls-date --format=\"{lh} {f}\n 7ab1b16 README.rst\n 2826492 git_ls_date.py\n\nSort files by last commit date\n-------------------------------\n::\n\n $ git ls-date --date iso --format \"{ld} {f}\" | sort\n 2013-11-05 04:40:11 +0900 .gitignore\n 2013-11-05 04:40:11 +0900 README.rst\n 2013-11-07 23:22:29 +0900 setup.py\n 2013-11-07 23:34:59 +0900 LICENSE\n 2013-11-08 15:36:16 +0900 .python-version\n 2013-11-09 15:07:06 +0900 testfiles/testdirectory/testfile4\n 2013-11-09 19:11:38 +0900 testfiles/testfile2\n 2013-11-09 19:11:38 +0900 testfiles/testfile3\n 2013-11-09 21:03:55 +0900 testfiles/testfile1\n 2013-11-09 22:22:38 +0900 tox.ini\n 2013-11-10 15:32:19 +0900 test_git_ls_date.py\n 2013-11-10 18:28:24 +0900 git_ls_date.py\n 2013-11-10 19:45:40 +0900 MANIFEST.in\n\nRequirements\n============\n\n- Python 2.6 / 2.7 / 3.2 / 3.3 or higher\n\nI'm testing with 2.6.8, 2.7.5, 3.2.5, 3.3.2.\n\nInstallation\n============\n\nInstall from pypi\n-----------------\n::\n\n easy_install git-ls-date\n\nor\n\n::\n\n pip install git-ls-date\n\nInstall from github\n-------------------\n::\n\n git clone https://github.com/ton1517/git-ls-date.git\n cd git-ls-date\n python setup.py install\n\nManual setup\n------------\n1. Copy git_ls_date.py to a directory that is in your PATH.\n2. Rename it to git-ls-date.\n3. Change it to executable.\n\n::\n\n cd ~/bin\n wget https://raw.github.com/ton1517/git-ls-date/master/git_ls_date.py -O git-ls-date\n chmod +x git-ls-date\n\nUsage\n=====\nUsage:\n ::\n\n git ls-date [--date=