CComGITPtr::Detach
Visual Studio 2012
Call this method to disassociate the interface from the CComGITPtr object.
DWORD Detach( ) throw( );
It is up to the caller to remove the interface from the GIT, using CComGITPtr::Revoke.