# Minor bug in 'stg edit' ?

5 messages from 2008-02-27 to 2008-02-29. Participants: Paul Donohue, Karl Hasselström, Catalin Marinas.
Thread: https://gitlist.dev/t/12348

## Paul Donohue, 2008-02-27 22:47

Subject: Minor bug in 'stg edit' ?
Message-ID: <20080227224756.GK2222@TopQuark.net>
URL: https://gitlist.dev/e/20080227224756.GK2222%40TopQuark.net

```
I'm running StGIT 0.14.1

After running 'stg edit', the file '.stgit-edit.txt' is always left behind.

Is this supposed to happen?  I would have assumed the file would be automatically removed after the changes were committed.

Thanks!
-Paul

```

## Karl Hasselström, 2008-02-28 09:41

Subject: Re: Minor bug in 'stg edit' ?
Message-ID: <20080228094107.GB28085@diana.vm.bytemark.co.uk>
URL: https://gitlist.dev/e/20080228094107.GB28085%40diana.vm.bytemark.co.uk
In-Reply-To: <20080227224756.GK2222@TopQuark.net>

```
On 2008-02-27 17:47:57 -0500, Paul Donohue wrote:

> After running 'stg edit', the file '.stgit-edit.txt' is always left
> behind. Is this supposed to happen? I would have assumed the file
> would be automatically removed after the changes were committed.

Yes, I'd say that's a bug.

> I'm running StGIT 0.14.1.

The bug is gone in the master branch (at least as far as I can tell);
it probably disappeared when stg edit was switched to the new
infrastructure.

> Thanks!

Thanks for the bug report.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

```

## Catalin Marinas, 2008-02-28 21:43

Subject: Re: Minor bug in 'stg edit' ?
Message-ID: <b0943d9e0802281343l7c3190a1va564a87afce1ea06@mail.gmail.com>
URL: https://gitlist.dev/e/b0943d9e0802281343l7c3190a1va564a87afce1ea06%40mail.gmail.com
In-Reply-To: <20080227224756.GK2222@TopQuark.net>

```
On 27/02/2008, Paul Donohue <stgit-bug@topquark.net> wrote:
> I'm running StGIT 0.14.1
>
>  After running 'stg edit', the file '.stgit-edit.txt' is always left behind.
>
>  Is this supposed to happen?  I would have assumed the file would be automatically removed after the changes were committed.

I wouldn't say it's a bug as I never thought it would cause any
problems if left. Anyway, we could remove it if the operation was
successful.

-- 
Catalin

```

## Paul Donohue, 2008-02-28 21:54

Subject: Re: Minor bug in 'stg edit' ?
Message-ID: <20080228215415.GO2222@TopQuark.net>
URL: https://gitlist.dev/e/20080228215415.GO2222%40TopQuark.net
In-Reply-To: <b0943d9e0802281343l7c3190a1va564a87afce1ea06@mail.gmail.com>

```
The only problem it causes is that it shows up as an untracked file if you run 'git status'

I guess this doesn't really matter since you should be using 'stg status' instead, but 'git status' supports colors, so I generally use that instead of 'stg status', since I can interpret the colored output slightly faster than I can scan for ? flags when I want to know if I need to 'stg add' any files before I 'stg refresh'...

Thanks.
-Paul

On Thu, Feb 28, 2008 at 09:43:53PM +0000, Catalin Marinas wrote:
> On 27/02/2008, Paul Donohue <stgit-bug@topquark.net> wrote:
> > I'm running StGIT 0.14.1
> >
> >  After running 'stg edit', the file '.stgit-edit.txt' is always left behind.
> >
> >  Is this supposed to happen?  I would have assumed the file would be automatically removed after the changes were committed.
> 
> I wouldn't say it's a bug as I never thought it would cause any
> problems if left. Anyway, we could remove it if the operation was
> successful.
> 
> -- 
> Catalin
> 

```

## Karl Hasselström, 2008-02-29 08:00

Subject: Re: Minor bug in 'stg edit' ?
Message-ID: <20080229080010.GB14773@diana.vm.bytemark.co.uk>
URL: https://gitlist.dev/e/20080229080010.GB14773%40diana.vm.bytemark.co.uk
In-Reply-To: <20080228215415.GO2222@TopQuark.net>

```
On 2008-02-28 16:54:15 -0500, Paul Donohue wrote:

> The only problem it causes is that it shows up as an untracked file
> if you run 'git status'

I put ".stgit*" in my ~/.gitignore ages ago. :-)

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

```
