No description
Find a file
Jeff King cd4371208a make oneline reflog dates more consistent with multiline format
The multiline reflog format (e.g., as shown by "git log -g")
will show HEAD@{<date>} rather than HEAD@{<count>} in two
situations:

  1. If the user gave branch@{<date>} syntax to specify the
     reflog

  2. If the user gave a --date=<format> specifier

It uses the "normal" date format in case 1, and the
user-specified format in case 2.

The oneline reflog format (e.g., "git reflog show" or "git
log -g --oneline") will show the date in the same two
circumstances. However, it _always_ shows the date as a
relative date, and it always ignores the timezone.

In case 2, it seems ridiculous to trigger the date but use a
format totally different from what the user requested.

For case 1, it is arguable that the user might want to see
the relative date by default; however, the multiline version
shows the normal format.

This patch does three things:

  - refactors the "relative_date" parameter to
    show_reflog_message to be an actual date_mode enum,
    since this is how it is used (it is passed to show_date)

  - uses the passed date_mode parameter in the oneline
    format (making it consistent with the multiline format)

  - does not ignore the timezone parameter in oneline mode

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-03-20 00:57:27 -07:00
arm
compat MinGW: implement mmap 2009-03-18 19:23:04 -07:00
contrib Merge branch 'js/remote-improvements' 2009-03-17 18:55:06 -07:00
Documentation rebase: add options passed to git-am 2009-03-18 19:25:01 -07:00
git-gui
gitk-git Merge git://git.kernel.org/pub/scm/gitk/gitk 2009-03-01 22:20:52 -08:00
gitweb gitweb: Hyperlink multiple git hashes on the same commit message line 2009-02-19 22:49:55 -08:00
mozilla-sha1
perl
ppc
t make oneline reflog dates more consistent with multiline format 2009-03-20 00:57:27 -07:00
templates Modify description file to say what this file is 2009-03-04 00:56:52 -08:00
xdiff Fix various dead stores found by the clang static analyzer 2009-03-15 18:25:24 -07:00
.gitattributes
.gitignore Revert "Merge branch 'js/notes'" 2009-02-10 21:32:10 -08:00
.mailmap
abspath.c
alias.c
alloc.c
archive-tar.c
archive-zip.c
archive.c archive: use parseopt for local-only options 2009-03-08 13:37:21 -07:00
archive.h
attr.c
attr.h
base85.c
blob.c
blob.h
branch.c Teach the "@{-1} syntax to "git branch" 2009-02-13 23:46:28 -08:00
branch.h
builtin-add.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
builtin-annotate.c
builtin-apply.c apply: hide unused options from short help 2009-03-18 19:10:19 -07:00
builtin-archive.c recv_sideband: Bands #2 and #3 always go to stderr 2009-03-10 23:23:02 -07:00
builtin-blame.c Merge branch 'el/blame-date' 2009-03-11 13:47:12 -07:00
builtin-branch.c Merge branch 'js/branch-symref' 2009-03-05 15:41:35 -08:00
builtin-bundle.c
builtin-cat-file.c
builtin-check-attr.c
builtin-check-ref-format.c
builtin-checkout-index.c
builtin-checkout.c Fix neglect of diff_setup()/diff_setup_done() symmetry. 2009-03-04 00:56:51 -08:00
builtin-clean.c
builtin-clone.c Merge branch 'js/remote-improvements' 2009-03-17 18:55:06 -07:00
builtin-commit-tree.c
builtin-commit.c Generalize and libify index_is_dirty() to index_differs_from(...) 2009-02-10 22:25:39 -08:00
builtin-config.c git config: trivial cleanup for editor action 2009-02-21 20:35:48 -08:00
builtin-count-objects.c Merge branch 'jc/maint-1.6.0-keep-pack' 2009-03-11 13:49:56 -07:00
builtin-describe.c
builtin-diff-files.c
builtin-diff-index.c
builtin-diff-tree.c Remove unused assignments 2009-03-14 13:36:34 -07:00
builtin-diff.c
builtin-fast-export.c Merge branch 'maint-1.6.0' into maint 2009-02-11 18:32:37 -08:00
builtin-fetch--tool.c
builtin-fetch-pack.c Merge branch 'js/sideband-stderr' 2009-03-17 18:58:25 -07:00
builtin-fetch.c Give error when no remote is configured 2009-03-10 23:14:20 -07:00
builtin-fmt-merge-msg.c Move local variables to narrower scopes 2009-03-07 20:52:23 -08:00
builtin-for-each-ref.c Remove unused assignments 2009-03-14 13:36:34 -07:00
builtin-fsck.c Merge branch 'jc/maint-1.6.0-keep-pack' 2009-03-11 13:49:56 -07:00
builtin-gc.c gc --aggressive: make it really aggressive 2009-03-18 19:11:34 -07:00
builtin-grep.c grep: prefer builtin over external one when coloring results 2009-03-17 17:03:33 -07:00
builtin-help.c
builtin-http-fetch.c
builtin-init-db.c
builtin-log.c format-patch: Respect --quiet option 2009-03-18 19:09:35 -07:00
builtin-ls-files.c ls-files: require worktree when --deleted is given 2009-03-17 15:12:40 -07:00
builtin-ls-remote.c
builtin-ls-tree.c tree.c: allow read_tree_recursive() to traverse gitlink entries 2009-02-07 12:14:34 -08:00
builtin-mailinfo.c Remove unused assignments 2009-03-14 13:36:34 -07:00
builtin-mailsplit.c
builtin-merge-base.c
builtin-merge-file.c
builtin-merge-ours.c
builtin-merge-recursive.c
builtin-merge.c Teach @{-1} to git merge 2009-02-13 23:46:42 -08:00
builtin-mv.c builtin-mv.c: check for unversionned files before looking at the destination. 2009-02-04 11:07:42 -08:00
builtin-name-rev.c
builtin-pack-objects.c Merge branch 'jc/maint-1.6.0-keep-pack' 2009-03-11 13:49:56 -07:00
builtin-pack-refs.c
builtin-prune-packed.c has_sha1_pack(): refactor "pretend these packs do not exist" interface 2009-02-28 01:06:06 -08:00
builtin-prune.c
builtin-push.c Give error when no remote is configured 2009-03-10 23:14:20 -07:00
builtin-read-tree.c
builtin-receive-pack.c improve missing repository error message 2009-03-04 20:37:21 -08:00
builtin-reflog.c
builtin-remote.c Merge branch 'js/remote-improvements' 2009-03-17 18:55:06 -07:00
builtin-rerere.c rerere: remove duplicated functions 2009-02-14 21:27:35 -08:00
builtin-reset.c
builtin-rev-list.c rev-list: estimate number of bisection step left 2009-03-04 00:56:52 -08:00
builtin-rev-parse.c
builtin-revert.c Merge branch 'maint-1.6.1' into maint 2009-03-07 21:00:27 -08:00
builtin-rm.c
builtin-send-pack.c move duplicated ref_newer() to remote.c 2009-02-26 00:49:45 -08:00
builtin-shortlog.c Remove unused assignments 2009-03-14 13:36:34 -07:00
builtin-show-branch.c
builtin-show-ref.c
builtin-stripspace.c
builtin-symbolic-ref.c symbolic-ref: allow refs/<whatever> in HEAD 2009-02-13 18:20:44 -08:00
builtin-tag.c
builtin-tar-tree.c
builtin-unpack-objects.c Merge branch 'lt/maint-wrap-zlib' into maint 2009-02-05 18:01:00 -08:00
builtin-update-index.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
builtin-update-ref.c
builtin-upload-archive.c improve missing repository error message 2009-03-04 20:37:21 -08:00
builtin-verify-pack.c Replace deprecated dashed git commands in usage 2009-02-04 15:08:49 -08:00
builtin-verify-tag.c
builtin-write-tree.c
builtin.h
bundle.c
bundle.h
cache-tree.c
cache-tree.h
cache.h Merge branch 'js/remote-improvements' 2009-03-17 18:55:06 -07:00
check-builtins.sh
check-racy.c
check_bindir
color.c Clean up use of ANSI color sequences 2009-02-13 17:27:58 -08:00
color.h Clean up use of ANSI color sequences 2009-02-13 17:27:58 -08:00
combine-diff.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
command-list.txt Revert "Merge branch 'js/notes'" 2009-02-10 21:32:10 -08:00
commit.c Revert "Merge branch 'js/notes'" 2009-02-10 21:32:10 -08:00
commit.h
config.c Revert "Merge branch 'js/notes'" 2009-02-10 21:32:10 -08:00
config.mak.in config.mak.in: define paths without trailing slash 2009-02-05 00:29:23 -08:00
configure.ac
connect.c Remove unused assignments 2009-03-14 13:36:34 -07:00
convert.c
copy.c
COPYING
csum-file.c
csum-file.h
ctype.c
daemon.c improve missing repository error message 2009-03-04 20:37:21 -08:00
date.c never fallback relative times to absolute 2009-02-25 00:44:43 -08:00
decorate.c
decorate.h
delta.h
diff-delta.c
diff-lib.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
diff-no-index.c MinGW: fix diff --no-index /dev/null ... 2009-03-07 20:36:16 -08:00
diff.c Merge branch 'jc/maint-1.6.0-keep-pack' 2009-03-11 13:49:56 -07:00
diff.h Use DIFF_XDL_SET/DIFF_OPT_SET instead of raw bit-masking 2009-03-04 00:56:51 -08:00
diffcore-break.c Remove unused function scope local variables 2009-03-07 20:52:17 -08:00
diffcore-delta.c
diffcore-order.c
diffcore-pickaxe.c pickaxe: count regex matches only once 2009-03-17 15:10:12 -07:00
diffcore-rename.c
diffcore.h
dir.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
dir.h
editor.c
entry.c write_entry(): use fstat() instead of lstat() when file is open 2009-02-09 20:59:26 -08:00
environment.c Revert "Merge branch 'js/notes'" 2009-02-10 21:32:10 -08:00
exec_cmd.c system_path(): simplify using strip_path_suffix(), and add suffix "git" 2009-02-19 22:47:39 -08:00
exec_cmd.h
fast-import.c Remove unused function scope local variables 2009-03-07 20:52:17 -08:00
fetch-pack.h
fixup-builtins
fsck.c Remove unused function scope local variables 2009-03-07 20:52:17 -08:00
fsck.h
generate-cmdlist.sh
git-add--interactive.perl Merge branch 'jc/add-p-unquote' 2009-03-05 15:41:41 -08:00
git-am.sh git-am: make --abort less dangerous 2009-02-26 23:06:38 -08:00
git-archimport.perl
git-bisect.sh Merge branch 'maint-1.6.0' into maint-1.6.1 2009-03-12 23:36:57 -07:00
git-compat-util.h MinGW: implement mmap 2009-03-18 19:23:04 -07:00
git-cvsexportcommit.perl
git-cvsimport.perl
git-cvsserver.perl git-cvsserver: run post-update hook *after* update. 2009-01-30 21:11:46 -08:00
git-filter-branch.sh Improve error message for git-filter-branch 2009-03-04 00:56:52 -08:00
git-instaweb.sh git-instaweb: fix lighttpd configuration on cygwin 2009-03-10 23:16:52 -07:00
git-lost-found.sh
git-merge-octopus.sh
git-merge-one-file.sh
git-merge-resolve.sh
git-mergetool.sh Merge branch 'cb/mergetool' 2009-02-05 19:40:35 -08:00
git-parse-remote.sh
git-pull.sh git-pull: Allow --stat and --no-stat to be used with --rebase 2009-03-02 23:22:54 -08:00
git-quiltimport.sh git-quiltimport: preserve standard input to be able to read user input 2009-02-25 00:49:13 -08:00
git-rebase--interactive.sh Merge branch 'js/maint-rebase-i-submodule' 2009-01-31 18:07:55 -08:00
git-rebase.sh rebase: add options passed to git-am 2009-03-18 19:25:01 -07:00
git-relink.perl
git-repack.sh Merge branch 'jc/maint-1.6.0-keep-pack' 2009-03-11 13:49:56 -07:00
git-request-pull.sh
git-send-email.perl Merge branch 'tr/maint-1.6.0-send-email-irt' 2009-03-17 18:54:46 -07:00
git-sh-setup.sh git-sh-setup: Use "cd" option, not /bin/pwd, for symlinked work tree 2009-02-07 00:45:29 -08:00
git-stash.sh
git-submodule.sh Merge branch 'mg/maint-submodule-normalize-path' 2009-03-11 13:50:29 -07:00
git-svn.perl git-svn: support intermediate paths when matching tags/branches 2009-03-09 14:52:12 -07:00
GIT-VERSION-GEN GIT 1.6.2.1 2009-03-15 13:05:05 -07:00
git-web--browse.sh git-web--browse: Fix check for /bin/start 2009-02-09 00:06:36 -08:00
git.c Merge branch 'jk/maint-cleanup-after-exec-failure' 2009-02-03 00:26:12 -08:00
git.spec.in Merge branch 'maint-1.6.0' into maint 2009-02-05 19:38:58 -08:00
graph.c
graph.h
grep.c git log: avoid segfault with --all-match 2009-03-18 19:10:40 -07:00
grep.h grep: add support for coloring with external greps 2009-03-07 11:34:59 -08:00
hash-object.c Merge branch 'en/maint-hash-object' into maint 2009-03-11 13:51:59 -07:00
hash.c
hash.h
help.c
help.h
http-push.c Merge branch 'js/remote-improvements' 2009-03-17 18:55:06 -07:00
http-walker.c Merge branch 'lt/maint-wrap-zlib' into maint 2009-02-05 18:01:00 -08:00
http.c http.c: use strbuf API in quote_ref_url 2009-03-07 20:52:25 -08:00
http.h
ident.c
imap-send.c Remove unused assignments 2009-03-14 13:36:34 -07:00
index-pack.c Fix various dead stores found by the clang static analyzer 2009-03-15 18:25:24 -07:00
INSTALL
levenshtein.c
levenshtein.h
list-objects.c
list-objects.h
ll-merge.c
ll-merge.h
lockfile.c Make the 'lock file' exists error more informative 2009-03-04 20:35:19 -08:00
log-tree.c Merge branch 'tr/format-patch-thread' 2009-03-11 13:48:07 -07:00
log-tree.h
mailmap.c Add map_user() and clear_mailmap() to mailmap 2009-02-08 12:36:38 -08:00
mailmap.h Add map_user() and clear_mailmap() to mailmap 2009-02-08 12:36:38 -08:00
Makefile MinGW: implement mmap 2009-03-18 19:23:04 -07:00
match-trees.c
merge-file.c
merge-index.c Replace deprecated dashed git commands in usage 2009-02-04 15:08:49 -08:00
merge-recursive.c Fix various dead stores found by the clang static analyzer 2009-03-15 18:25:24 -07:00
merge-recursive.h
merge-tree.c Replace deprecated dashed git commands in usage 2009-02-04 15:08:49 -08:00
mktag.c Replace deprecated dashed git commands in usage 2009-02-04 15:08:49 -08:00
mktree.c Replace deprecated dashed git commands in usage 2009-02-04 15:08:49 -08:00
name-hash.c
object.c
object.h Merge branch 'js/maint-all-implies-HEAD' into maint 2009-02-05 17:54:12 -08:00
pack-check.c
pack-redundant.c
pack-refs.c
pack-refs.h
pack-revindex.c
pack-revindex.h
pack-write.c Merge branch 'jc/maint-1.6.0-pack-directory' 2009-02-25 14:50:05 -08:00
pack.h
pager.c
parse-options.c parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together 2009-03-09 15:32:50 -07:00
parse-options.h parseopt: add PARSE_OPT_NO_INTERNAL_HELP 2009-03-08 13:36:27 -07:00
patch-delta.c
patch-id.c Replace deprecated dashed git commands in usage 2009-02-04 15:08:49 -08:00
patch-ids.c
patch-ids.h
path.c Introduce the function strip_path_suffix() 2009-02-19 22:45:48 -08:00
pkt-line.c
pkt-line.h
preload-index.c
pretty.c Remove unused assignments 2009-03-14 13:36:34 -07:00
progress.c
progress.h
quote.c
quote.h
reachable.c
reachable.h
read-cache.c checkout bugfix: use stat.mtime instead of stat.ctime in two places 2009-03-15 12:56:40 -07:00
README README: fix path to "gitcvs-migration.txt" and be more consistent 2009-02-25 00:49:54 -08:00
reflog-walk.c make oneline reflog dates more consistent with multiline format 2009-03-20 00:57:27 -07:00
reflog-walk.h make oneline reflog dates more consistent with multiline format 2009-03-20 00:57:27 -07:00
refs.c refactor find_ref_by_name() to accept const list 2009-02-26 00:49:44 -08:00
refs.h remote prune: warn dangling symrefs 2009-02-10 22:26:20 -08:00
RelNotes Beginning of 1.6.3 development track 2009-03-04 00:41:49 -08:00
remote.c Merge branch 'db/maint-missing-origin' 2009-03-17 18:58:41 -07:00
remote.h remote: let guess_remote_head() optionally return all matches 2009-02-27 15:08:17 -08:00
rerere.c rerere: remove duplicated functions 2009-02-14 21:27:35 -08:00
rerere.h rerere: remove duplicated functions 2009-02-14 21:27:35 -08:00
revision.c Merge branch 'jc/maint-1.6.1-allow-uninteresting-missing' into maint-1.6.1 2009-03-12 21:44:48 -07:00
revision.h Merge branch 'jc/maint-1.6.0-keep-pack' 2009-03-11 13:49:56 -07:00
run-command.c Merge branch 'jk/maint-cleanup-after-exec-failure' 2009-02-03 00:26:12 -08:00
run-command.h Merge branch 'jk/maint-cleanup-after-exec-failure' 2009-02-03 00:26:12 -08:00
send-pack.h
server-info.c
setup.c Merge branch 'js/maint-1.6.0-path-normalize' 2009-02-10 21:30:52 -08:00
sha1-lookup.c
sha1-lookup.h
sha1_file.c Merge branch 'jc/maint-1.6.0-keep-pack' 2009-03-11 13:49:56 -07:00
sha1_name.c Squelch overzealous "ignoring dangling symref" in an empty repository 2009-02-11 09:22:16 -08:00
shallow.c
shell.c
shortlog.h
show-index.c
sideband.c recv_sideband: Bands #2 and #3 always go to stderr 2009-03-10 23:23:02 -07:00
sideband.h recv_sideband: Bands #2 and #3 always go to stderr 2009-03-10 23:23:02 -07:00
sigchain.c
sigchain.h
strbuf.c
strbuf.h
string-list.c string-list: new for_each_string_list() function 2009-02-27 15:19:08 -08:00
string-list.h string-list: new for_each_string_list() function 2009-02-27 15:19:08 -08:00
symlinks.c Revert "lstat_cache(): print a warning if doing ping-pong between cache types" 2009-03-17 12:10:58 -07:00
tag.c
tag.h
tar.h
test-chmtime.c
test-ctype.c
test-date.c
test-delta.c
test-dump-cache-tree.c add test-dump-cache-tree in Makefile 2009-02-03 22:11:44 -08:00
test-genrandom.c
test-match-trees.c
test-parse-options.c
test-path-utils.c Introduce the function strip_path_suffix() 2009-02-19 22:45:48 -08:00
test-sha1.c
test-sha1.sh
test-sigchain.c t0005: use SIGTERM for sigchain test 2009-01-30 01:14:26 -08:00
thread-utils.c
thread-utils.h
trace.c trace: Fixed a minor typo in an error message. 2009-02-25 00:49:53 -08:00
transport.c rsync transport: allow local paths, and fix tests 2009-03-10 23:17:56 -07:00
transport.h
tree-diff.c
tree-walk.c
tree-walk.h
tree.c Drop double-semicolon in C 2009-02-10 22:26:37 -08:00
tree.h
unpack-file.c Replace deprecated dashed git commands in usage 2009-02-04 15:08:49 -08:00
unpack-trees.c Merge branch 'jc/maint-1.6.0-read-tree-overlay' 2009-03-17 18:58:55 -07:00
unpack-trees.h
update-server-info.c
upload-pack.c Move local variables to narrower scopes 2009-03-07 20:52:23 -08:00
usage.c
userdiff.c
userdiff.h
utf8.c utf8: add utf8_strwidth() 2009-02-04 16:30:43 -08:00
utf8.h utf8: add utf8_strwidth() 2009-02-04 16:30:43 -08:00
var.c
walker.c Drop double-semicolon in C 2009-02-10 22:26:37 -08:00
walker.h
wrapper.c Merge branch 'jc/maint-1.6.0-pack-directory' 2009-02-28 16:31:02 -08:00
write_or_die.c
ws.c
wt-status.c Clean up use of ANSI color sequences 2009-02-13 17:27:58 -08:00
wt-status.h
xdiff-interface.c Remove unused function scope local variables 2009-03-07 20:52:17 -08:00
xdiff-interface.h

////////////////////////////////////////////////////////////////

	GIT - the stupid content tracker

////////////////////////////////////////////////////////////////

"git" can mean anything, depending on your mood.

 - random three-letter combination that is pronounceable, and not
   actually used by any common UNIX command.  The fact that it is a
   mispronunciation of "get" may or may not be relevant.
 - stupid. contemptible and despicable. simple. Take your pick from the
   dictionary of slang.
 - "global information tracker": you're in a good mood, and it actually
   works for you. Angels sing, and a light suddenly fills the room.
 - "goddamn idiotic truckload of sh*t": when it breaks

Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations
and full access to internals.

Git is an Open Source project covered by the GNU General Public License.
It was originally written by Linus Torvalds with help of a group of
hackers around the net. It is currently maintained by Junio C Hamano.

Please read the file INSTALL for installation instructions.

See Documentation/gittutorial.txt to get started, then see
Documentation/everyday.txt for a useful minimum set of commands, and
Documentation/git-commandname.txt for documentation of each command.
If git has been correctly installed, then the tutorial can also be
read with "man gittutorial" or "git help tutorial", and the
documentation of each command with "man git-commandname" or "git help
commandname".

CVS users may also want to read Documentation/gitcvs-migration.txt
("man gitcvs-migration" or "git help cvs-migration" if git is
installed).

Many Git online resources are accessible from http://git.or.cz/
including full documentation and Git related tools.

The user discussion and development of Git take place on the Git
mailing list -- everyone is welcome to post bug reports, feature
requests, comments and patches to git@vger.kernel.org. To subscribe
to the list, send an email with just "subscribe git" in the body to
majordomo@vger.kernel.org. The mailing list archives are available at
http://marc.theaimsgroup.com/?l=git and other archival sites.

The messages titled "A note from the maintainer", "What's in
git.git (stable)" and "What's cooking in git.git (topics)" and
the discussion following them on the mailing list give a good
reference for project status, development direction and
remaining tasks.