Git development
 help / color / mirror / Atom feed
From: "Vadim K." <klug@hot.ee>
To: <git@vger.kernel.org>
Subject: GIT commit strategy
Date: Tue, 16 Aug 2011 19:17:31 +0300	[thread overview]
Message-ID: <C0B80A98F4E14FA287D3BAFA8366BEAC@procyon> (raw)

Hello all,

    Imagine developer A has changed files f1 and f2, then made commit and 
push to the server
    Developer B has changed files f2 and f3 and made local commit.

    Next B wants to publish changes to the server and make pull to resolve 
conflicts at f2.  After pulling from the server it has all 3 files - f1, f2 
and f3 to commit before push. But B did not changed f1 and actually can 
"ban" this change if he commits only f2 and f3 - files that were changed by 
him. In latter case after pushing to the server GIT will restore previous 
version of the f1, even if it has more recent one !! It does not seem to be 
very logical.

    Question: is it possible to show to the developer only files, that he 
changes? Like in SVN - after updating from the server developer must resolve 
conflicts (if any) and only commits changes that he has made. By the way - 
in a case of non-conflicting files (let me say A changes f1, B changes f2) 
GIT makes commit automatically and does not show to the B, that f1 was 
changed and need to be re-commited. B only need to push the change back.

Thank you,

Vadim. 

             reply	other threads:[~2011-08-16 16:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16 16:17 Vadim K. [this message]
2011-08-16 16:46 ` GIT commit strategy Michael Witten

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=C0B80A98F4E14FA287D3BAFA8366BEAC@procyon \
    --to=klug@hot.ee \
    --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