0

In a new fragment with a ConstraintLayout I convert it to MotionLayout by selecting the menu option "Convert to MotionLayout"

The conversion completes successfully and the xml file with the MotionScene is created

The problem is that none of these changes is recorded in git! I'm using GitHub Desktop and after the conversion, there are no changes that I can commit. None of the changes to the fragment are recorded and the xml file with the MotionScene doesn't appear as created in git.

Also, after making other changes to that particular fragment (for example delete everything from the layout) don't appear to GitHub Desktop anymore. It is as if changes to the fragment are ignored.

Changes to other source files are recorded as usual to GitHub Desktop

By the way, there are no changes to .gitignore file (.gitignore doesn't appear as having changes in GitHub Desktop)

Anyone knows why this thing is happening and how I can correct it?

torek
  • 448,244
  • 59
  • 642
  • 775
Dimitris
  • 725
  • 1
  • 10
  • 28
  • Are the files you're changing listed in `.gitignore`? And the files you're changing already tracked in your Git repo, or newly created by these operations? – joanis May 20 '22 at 13:35
  • 1
    If you run `git status --ignored=matching` on the command prompt, does it say anything about that file? Is the file actually inside the Git sandbox you're working in, or does it get created/modified elsewhere on your file system? – joanis May 20 '22 at 13:38
  • @joanis Thanks a lot. Seems that in previous commit, there was the entry `*.xml` in `.gitignoree` and the particular file that I was working on stopped being tracked (not only that file, but it just happened to work only on that particular one) – Dimitris May 20 '22 at 20:11

0 Answers0