Re: [PATCH] branch: borrow --sort and --count from for-each-ref

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nguyễn Thái Ngọc Duy  <pclouds@xxxxxxxxx> writes:

> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx>
> ---
>  Some time ago, I posted a patch that added date sort to git-branch
>  and Peff pointed me to for-each-ref. I did not look at it closely.
>  Now it does not seem hard to lend some code from for-each-ref to
>  git-branch. I can list 10 most recently touched branches with
>
>   git branch --sort=-committerdate -v --count=10
>
>  kind of cool. I don't think adding --format is necessary because
>  git-branch already has its own formatting.

Why do we even need this for "git branch", when "git for-each-ref
refs/heads" already does this?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]