changed how commit affects the local graph