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 7708929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:44:13+00:00 2026-06-01T00:44:13+00:00

I am working on a localization framework that managaes the text-assets for several applications

  • 0

I am working on a localization framework that managaes the text-assets for several applications (wpf,android,ios) in a library. We use git as the version control system for all the applications. Now I want to export those assets directly into the the git-repository.

The problem is: I dont want to clone/pull the whole repository every time i export the assets into the git repositories. In fact I dont want to know about any files exept those assets. I already figured out that checking out subdirs is not possible with git, but is there a way to “inject” or “force” those changes into the repository without having to pull all the other changes and files? (Note: the assets are only changed here and are not edited by the developers directly)
It should basically ignore everything that happens outside the assets folder.
Another imoportant thing is that it shouldn’t change the workflow for our developers, so submodules is not really an option since they would have to pull the submodule all the time.

Is there a good way to do this with git except ? Thanks in advance!

  • 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-01T00:44:14+00:00Added an answer on June 1, 2026 at 12:44 am

    In git, a commit object references a tree object. That tree object then references blob objects. Each blob is (generally) a file in your working copy.

    The commit identifier is a hash of the commit object, which contains the hash of the tree object, which itself contains the hash of all the blobs.

    So, in order to make a commit, you must know the state of all blobs in the commit. The commit is, effectively, a snapshot of the whole working copy (technically, the index). This means you can’t just “ignore changes outside dir X”, because if you did that, your commit would produce a working copy either without those files (if you didn’t include them in the tree object) or with outdated copies (if you check out once and then assume they’re unchanged, putting the outdated hashes into the tree object).

    This is why you can’t just check out a subtree in git and ignore changes outside of it. This is also why what you’re asking for (making a commit without ever looking at the state of other files) is impossible.

    However, I think if you were to try the “git way” of doing things – cloning once, then committing many times from that one clone – you would rapidly discover it is a very low-overhead way of doing things.

    Failing that, you could make your “assets” be a separate repository (possibly a git submodule, they don’t require a significant “change to the developers’ workflow”, really). Then you only have to clone the “assets” repository to make commits there.

    You could also just send patches to the already-up-to-date server and have it do the commits locally. This wouldn’t involve ever cloning the repo, since of course the server must have the latest changes to other files (it’s the source you’d be pulling from!).

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

Sidebar

Related Questions

I am working on localization for a asp.net application that consists of several projects.
I am working on a project that requires localization of all user-facing text in
I am currently working on a little localization framework for WPF (don't even think
I'm working on a custom validation framework for my WPF/C# application. What I'm looking
I am working for a client on a web app that requires localization in
I'm working on localization for my toolkit. My goal is that if you were
I'm working to build a .NET program with WPF that will need to be
I'm trying to use implict localization with MVCSiteMap but it's not working. Here's my
I am working on localization for an app where custom patterns are used to
Working with a SqlCommand in C# I've created a query that contains a 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.