Something strange is happening with the git repositories.

Several times recently, I have seen things inexplicably disappear and reappear.

For example:

Commit # 9e091d2027a42fbec14555ae98c76e7579cd8b8e,
"Improvements for NRF52 (#37)"

Adds these files:
* arch/arm/src/nrf52/hardware/nrf52_gpiote.h
* arch/arm/src/nrf52/hardware/nrf52_saadc.h
* arch/arm/src/nrf52/nrf52_i2c.c
* arch/arm/src/nrf52/nrf52_i2c.h

And modifies these files:
* arch/arm/src/nrf52/hardware/nrf52_gpio.h
* arch/arm/src/nrf52/hardware/nrf52_spi.h
* arch/arm/src/nrf52/hardware/nrf52_twi.h
* arch/arm/src/nrf52/hardware/nrf52_uarte.h
* arch/arm/src/nrf52/nrf52_gpio.c
* arch/arm/src/nrf52/nrf52_gpio.h
* arch/arm/src/nrf52/nrf52_lowputc.c
* arch/arm/src/nrf52/nrf52_lowputc.h
* arch/arm/src/nrf52/nrf52_serial.c

Now see the commit after it, 7da409f3b53b4d2607b4551b059abb69ad3ad33b,
"tools/nxstyle.c: Add -r option to check specified range lines"

According to 'git show', it modifies these files:
* tools/README.txt
* tools/nxstyle.c

There is no mention of any other files.

No files are supposed to be added.

No files are supposed to be deleted.

However, try this:

$ git checkout 9e091d2027a42fbec14555ae98c76e7579cd8b8e

$ ls arch/arm/src/nrf52/hardware/nrf52_gpiote.h
arch/arm/src/nrf52/hardware/nrf52_gpiote.h

The file is there. Now checkout the next commit:

$ git checkout 7da409f3b53b4d2607b4551b059abb69ad3ad33b

$ ls arch/arm/src/nrf52/hardware/nrf52_gpiote.h
ls: cannot access 'arch/arm/src/nrf52/hardware/nrf52_gpiote.h': No
such file or directory

The file is gone!

Now checkout the next commit, 3951c4de5af427b204b77ae484fbd8175ed07842:

$ git checkout 3951c4de5af427b204b77ae484fbd8175ed07842
$ ls arch/arm/src/nrf52/hardware/nrf52_gpiote.h
arch/arm/src/nrf52/hardware/nrf52_gpiote.h

The file is back.

Why are files (and modifications) disappearing and reappearing from
one commit to the next?

Nathan

Reply via email to