git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christian MICHON" <christian.michon@gmail.com>
To: git <git@vger.kernel.org>
Subject: how to do these 2 one-liners ?
Date: Mon, 19 Mar 2007 23:25:41 +0100	[thread overview]
Message-ID: <46d6db660703191525w613b02e1nae0f30efaca3b269@mail.gmail.com> (raw)

Hi list,

in order to code a gvim plugin for git (I started something), I now miss
2 one-liners, and I hope experts around this list will find it easy
to answer (for the sake of this plugin)

================================================
1) how do I check the status of a single file ? ( the file is already
added in the index)

I usually use git-status here, but for single files that need update,
there should be a faster way.

================================================
2) how do I find in historical reverse order all the commits a
certain file belongs to since the origin ?

I usually do: git-log <file> | grep ^commit
I would like to avoid piping here...

I may need more than these 2 one-liners, if they're doable.
I'll post something soon :)
Thanks in advance!

-- 
Christian

             reply	other threads:[~2007-03-19 22:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19 22:25 Christian MICHON [this message]
2007-03-19 22:44 ` how to do these 2 one-liners ? Junio C Hamano
2007-03-19 22:59   ` Christian MICHON
2007-03-19 23:09 ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46d6db660703191525w613b02e1nae0f30efaca3b269@mail.gmail.com \
    --to=christian.michon@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).