Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8036389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:36:16+00:00 2026-06-05T02:36:16+00:00

I moved a project from svn to git. I used git-filter-branch with –index-filter to

  • 0

I moved a project from svn to git. I used git-filter-branch with –index-filter to remove all the unnecessary directories, and pruned all empty commits with the –prune-empty option.

After I recloned the repository, I am still seeing these strange commits with paths pointing to a ancestor directory. This is best explained by the output of git log –stat

commit 222222b80e791e4ef5b9a027c8b10f64be5e2222
Author: someuser <someuser@somedomain>
Date:   Mon Sep 14 17:52:08 2009

    some commit msg

 hello/.project                                |   11 ++++
 hello/bin/hello.fla                           |  Bin 0 -> 43008 bytes
 .../other/Plugin.as                           |   10 ++++
 .../other/Constants.as                        |    2 +
 hello/Base.as                                 |   52 ++++++++++++++++++++
 .../other/HelloWorld.as                       |   21 ++++++++
 .../target/Hello.swf                          |  Bin 0 -> 1039 bytes
 7 files changed, 96 insertions(+), 0 deletions(-)

How does this happen, and how do I fix this?

Btw, the command was run at the root of the git repository.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:36:19+00:00Added an answer on June 5, 2026 at 2:36 am

    Those aren’t parent directories. git is abbreviating longer pathnames to ... because it doesn’t have room to display them (presumably).

    From the git log --help manual page:

       --stat[=<width>[,<name-width>[,<count>]]]
           Generate a diffstat. You can override the default output width
           for 80-column terminal by --stat=<width>. The width of the
           filename part can be controlled by giving another width to it
           separated by a comma. By giving a third parameter <count>, you
           can limit the output to the first <count> lines, followed by
           ...  if there are more.
    
           These parameters can also be set individually with
           --stat-width=<width>, --stat-name-width=<name-width> and
           --stat-count=<count>.
    

    Try resizing your terminal to 120 characters wide, and then do this:

    git log --stat=120,80
    

    You should have plenty of room to see the full pathnames then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently moved a project from SVN to git, and my colleague only
I'm tracking a project that has recently moved from svn to git. I've got
I recently used git svn branch to create a branch (in both Subversion and
I'm a Git newbie. I recently moved a Rails project from Subversion to Git.
I've recently moved my project from sourceforge to Google code. I'm intrigued by the
I moved my first Django project from DjangoEurope to Webfaction, and that started an
We got all psyched about from from svn to hg and as the development
I'm looking at porting my projects to Git from SVN (I'm convinced that Git
I moved one of my VS projects (C#) from one machine to another (SVN
I've recently moved from an SVN shop to a place that uses TFS. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.