Welcome! Log In Create A New Profile

Advanced

git log in chronological order?

Posted by walnuts 
Hi all.

Searched but couldn't find the answer, so I thought I'd check...

I am trying to get a "git log" output that would show me in reverse order of the check-in date. All I've tried has been fruitless.

When I go to the corresponding git location on the web, I can see the log in chronological order.
But, no matter what I tried using git log, I cannot get it to show up that way.

I am using: git log --pretty=format:'%Cgreen%ai [%h] %Cblue<%an> %Cred%s' --date-order

but I see (small snippit)

2011-05-26 18:32:38 -0700 [e132285] <Colin Cross> regulator: twl-regulator: fix n_voltages for twl6030 variable LDOs
2011-05-26 14:43:09 +0530 [0a9fb1e] <Rajendra Nayak> OMAP4: clockdomain: Follow PRCM recommended enable sequence
2011-05-26 14:42:20 +0530 [0e06afb] <Rajendra Nayak> OMAP4: clock: wait for module to become accessible on a clk enable
2011-05-03 16:20:39 -0700 [d4a0603] <Colin Cross> ARM: omap4: Enable keypad controller hwmod
2011-05-03 16:18:51 -0700 [f64b76d] <Colin Cross> ARM: omap4: Pass core and wakeup mux tables to omap4_mux_init
2011-05-09 12:00:40 -0700 [4f12bc0] <Colin Cross> ARM: omap2+: mux: Allow board mux settings to be NULL
2011-04-21 20:41:55 -0700 [6403eb7] <Colin Cross> ARM: omap4: hwmod data: Prevent idle and reset on gpio
2011-04-22 14:24:22 -0700 [f2660f8] <Colin Cross> ARM: omap2+: hwmod: Allow _enable to be called on enabled hwmod
2011-05-27 13:45:33 -0700 [5928dac] <Vikram Pandita> Merge remote branch 'linux-omap-2.6.39_til2.0_rpmsg' into p-android
2011-05-27 13:23:58 -0700 [7d99f79] <Erik Gilling> Merge branch 'linux-omap-2.6.39' into android-omap-2.6.39
2011-05-27 13:23:15 -0700 [e105118] <Erik Gilling> Merge branch 'linux-omap-dss-2.6.39' into linux-omap-2.6.39
2011-05-20 15:39:01 -0700 [5035d7a] <Erik Gilling> video: omap2: support DSI for omap4 in Kconfig
2011-05-27 12:57:12 -0700 [fe2f9f8] <Erik Gilling> Merge branch 'linux-omap-2.6.39' into android-omap-2.6.39


see how the dates and times are in like random order? any thoughts?

Thanks.
jc
ah, figured it out. %ai shows you the author date, not the commit date. %cd is the committer date, so it is in chronological order, the --pretty is just displaying a different date than what I wanted.

Thanks - jc
That's good help , Thanks!
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 6 plus 20?
Message: