git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Frodo Baggins" <frodo.drogo@gmail.com>
To: git@vger.kernel.org
Subject: Trouble merging to master when topic branch has a dir added
Date: Sat, 3 May 2008 19:21:46 +0530	[thread overview]
Message-ID: <1cdff3fa0805030651j5d1936bdh4f7999163b7444ba@mail.gmail.com> (raw)

Hi,
This is a newbie question.

I created a topic branch and made a few commits which added a few
directories. I'd like to merge these changes back to master.
I get the following error messages.

frodo@laptop-zion:~/src/c/logger$ ls
logger-inc  logger-src  Makefile  test-driver
frodo@laptop-zion:~/src/c/logger$ git branch
  debug-printf-help
  debug-static
  master
* split-into-dirs
frodo@laptop-zion:~/src/c/logger$ git checkout master
fatal: Entry 'logger-src/logger.cpp' would be overwritten by merge.
Cannot merge.

I think the above error is due to the fact that the branch master did
not have these directories.

frodo@laptop-zion:~/src/c/logger$ git-ls-tree master
100644 blob 82ccb7971fc36db2bc54bb5a590f97cd37c998fb    .gitignore
100644 blob 9971a5a432d575cc682145454e5260f83e1b9fb3    Makefile
100644 blob b8f6c213ebb831ed8704b7f0e0e665212b808649    client.cpp
100644 blob d01aaec4138862ccae4be9de2c672ddaeccfa21d    logger.cpp
100644 blob 37c15a22b325934ea685a76cfd528c2bf6464f2b    logger.h
frodo@laptop-zion:~/src/c/logger$ git-ls-tree split-into-dirs
100644 blob 82ccb7971fc36db2bc54bb5a590f97cd37c998fb    .gitignore
100644 blob 7c497aff60175ce212415c1737e224f517f785e9    Makefile
040000 tree 4f181412688afaa30929b752cc1fb3f2cda3cba9    logger-inc
       <=== new dir
040000 tree 4fb363dac2a00d93d1a958f74021fcd0e3bc861e    logger-src
      <===
040000 tree bb2b91b6ec1d11d23ab8e7a3c8935504079f6bf3    test-driver         <===


Could someone help me out with this?
frodo@laptop-zion:~/src/c/logger$ git --version
git version 1.5.2.5

Regards,
Frodo B
-- 
Never laugh at live dragons.
                              -- Bilbo Baggins

             reply	other threads:[~2008-05-03 13:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-03 13:51 Frodo Baggins [this message]
2008-05-05 14:27 ` Trouble merging to master when topic branch has a dir added Jeremy Ramer

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=1cdff3fa0805030651j5d1936bdh4f7999163b7444ba@mail.gmail.com \
    --to=frodo.drogo@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).