# [RFC] Add an option for git-archive to output commit ID in alternative ways

3 messages from 2009-03-03 to 2009-03-03. Participants: roylee17, Junio C Hamano.
Thread: https://gitlist.dev/t/18105

## roylee17, 2009-03-03 11:15

Subject: [RFC] Add an option for git-archive to output commit ID in alternative ways
Message-ID: <1236078904678-2414580.post@n2.nabble.com>
URL: https://gitlist.dev/e/1236078904678-2414580.post%40n2.nabble.com

```

Hi,

Consider the following use case:
  Regularly building projects which are untar'ed on-the-fly with git-archive
without intermediate tar balls.

How can I track back which commit IDs were those source code git-archive
from?

I'd like to  to add an option for git-archive to output the commit ID in
alternative ways in addition
to only store it inside the tar ball. Any comment?

Regards,
Roy
-- 
View this message in context: http://n2.nabble.com/-RFC--Add-an-option-for-git-archive-to-output-commit-ID-in-alternative-ways-tp2414580p2414580.html
Sent from the git mailing list archive at Nabble.com.

```

## Junio C Hamano, 2009-03-03 15:44

Subject: Re: [RFC] Add an option for git-archive to output commit ID in alternative ways
Message-ID: <7vtz6ad31f.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vtz6ad31f.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <1236078904678-2414580.post@n2.nabble.com>

```
roylee17 <roylee17@gmail.com> writes:

> Consider the following use case:
>   Regularly building projects which are untar'ed on-the-fly with git-archive
> without intermediate tar balls.
>
> How can I track back which commit IDs were those source code git-archive
> from?

Run "man gitattributes" and look for export-subst?

```

## roylee17, 2009-03-03 16:51

Subject: Re: [RFC] Add an option for git-archive to output commit ID in alternative ways
Message-ID: <1236099097541-2416431.post@n2.nabble.com>
URL: https://gitlist.dev/e/1236099097541-2416431.post%40n2.nabble.com
In-Reply-To: <7vtz6ad31f.fsf@gitster.siamese.dyndns.org>

```



Junio C Hamano wrote:
> 
> roylee17 <roylee17@gmail.com> writes:
> 
>> Consider the following use case:
>>   Regularly building projects which are untar'ed on-the-fly with
>> git-archive
>> without intermediate tar balls.
>>
>> How can I track back which commit IDs were those source code git-archive
>> from?
> 
> Run "man gitattributes" and look for export-subst?
> 
> 

Really nice feature, thanks.

-- 
View this message in context: http://n2.nabble.com/-RFC--Add-an-option-for-git-archive-to-output-commit-ID-in-alternative-ways-tp2414580p2416431.html
Sent from the git mailing list archive at Nabble.com.

```
