# how to avoid full rebuild after switching between commits?

**URL:** https://discourse.paraview.org/t/how-to-avoid-full-rebuild-after-switching-between-commits/16123
**Category:** Development
**Created:** [February 7, 2025, 1:29am UTC](https://discourse.paraview.org/t/how-to-avoid-full-rebuild-after-switching-between-commits/16123 "2025-02-07T01:29:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 7, 2025, 1:29am UTC](https://discourse.paraview.org/t/how-to-avoid-full-rebuild-after-switching-between-commits/16123/1 "2025-02-07T01:29:11Z")

</div>

Hello

I use ParaView build from source with VisualStudio + CMake, opened as folder, not as a project

Somehow, the project is completely rebuild after I switch between commits which only pertain to my custom plugin.  
Did not get why it is so and how to disable it.

Any help would be greately appreciated

Thanks

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [February 7, 2025, 8:17am UTC](https://discourse.paraview.org/t/how-to-avoid-full-rebuild-after-switching-between-commits/16123/2 "2025-02-07T08:17:03Z")

</div>

Could you get the output of `ninja -d explain` when this happens to see what files `ninja` thinks changed such that everything needs rebuilt?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 7, 2025, 8:21am UTC](https://discourse.paraview.org/t/how-to-avoid-full-rebuild-after-switching-between-commits/16123/3 "2025-02-07T08:21:45Z")

</div>

I think the sarting point is to use ninja instead of visual studio.

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [February 9, 2025, 2:33am UTC](https://discourse.paraview.org/t/how-to-avoid-full-rebuild-after-switching-between-commits/16123/4 "2025-02-09T02:33:44Z")

</div>

Why don’t you open Paraview as a project?
